users@jersey.java.net

[Jersey] JSESSION cookie not returned with Spring-Jersey integration

From: Peter Coppens <pc.subscriptions_at_gmail.com>
Date: Fri, 8 May 2009 07:18:24 -0700 (PDT)

Hello,

I am using Jersey 1.0 (jersey-bundle-1.0.jar) and I have a problem when I
try to 'logon' using spring security (in tomcat)

I implemented the logon as PUT of a credentials resource and it works fine
if the PUT method does not return a response. Once the PUT method does
return a resource (even a String) the JSESSIONID cookie is not returned

E.g.

  @PUT()
  public void login(CredentialsResource credentials) {

works fine

but

  @PUT()
  public CredentialsResource login(CredentialsResource credentials) {

fails...that is the call is fine, the CredentialsResource is returned fine
but the cookie is no longer in the reply header.

Note, not sure it is relevant, I use a custom provider

Any help warmly welcomed!

Peter

-- 
View this message in context: http://n2.nabble.com/JSESSION-cookie-not-returned-with-Spring-Jersey-integration-tp2845573p2845573.html
Sent from the Jersey mailing list archive at Nabble.com.