-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Theparanoidone,

On 9/18/2009 11:45 PM, Theparanoidone Theparanoidone wrote:
> Thank you; that's pretty close to what I am looking for (as it relates to 
> mod-jk):
> 
> As a follow up question, it seems safe to assume that tomcat will
> receive the JSESSIONID's in the appropriate order... however, in our
> struts application there appears to be a limited way to retrieve the
> session:
> 
> pseudo code:
> map m = ActionInvocation ai.getInvocationContext().getSession()
> 
> 1) Is it safe to assume that the above call will return the "more" specific 
> JSESSIONID?

Struts will get whatever session Tomcat hands to it, so this is really a
Tomcat question: the current version of Tomcat will take all available
JSESSIONID cookie values and give you the one that matches a
currently-valid session. If none matches, I think you get an arbitrary
session id returned from request.getRequestedSessionId and if you call
getSession(true), you'll get a new session created.

> 2) Is there another function call that will return an array session objects?

No, the servlet API does not provide a way to get more than one session
for a request. You'd have to provide this capability yourself.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkq2sJcACgkQ9CaO5/Lv0PDhwACdGAk8XaxPXPmvuwHYZ+EeyfE2
VcgAn1WZS2xb5f+cljmcWHS1Ock3FpsV
=J1OV
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to