I'm getting confused WRT HTTP/EJB session handling.
I'm writing a simple Java client (using URLConnection) to access a Stateful SB via a servlet. I am placing the EJB into the HTTP session, but the HTTP session is itself different on each request.
What magic 'perhaps a cookie :)' is required from the client to retain an HTTP session for the client? I've hunted high & low, looked trough the spec. with no answer!
BTW Using Jboss2.4.4 with Jetty
Many thanks for any help
I don't think you can manage the http session with the standard HttpURLConnection.
Personnally I use an alternative http client (http://www.innovation.ch/java/HTTPClient) which is able to maintain the session with cookie management.
I suppose you could also configure tomcat to use url rewriting for session management but I haven't try it.