Hi all,

I'm not sure if it is the correct place, because I'm using some tapestry
modules.

I have two tapestry applications, app1 is a frontend which consumes Web
Services published by app2.

I'm using derkoe' jax-ws (https://github.com/derkoe/tapestry-jaxws) to
publish WS in app2.

I've implemented security in app1 with tynamo-security.

My intention is to implement the security in app2 with tynamo-security,
too, in order to have the same access control facilities in both places.

The login page, does the login in app1, and finally, invokes a WS for doing
the login in app2 (passing user and password)

The tynamo-security login works fine in both places, but the authentication
in app2, does not last more than 1 request, the next WS call fails because
of not-authenticated.

I think that the point is that the JSESSIONID is not beeing passed from
app1 to app2 when calling the WSs.

I tried with this before calling the WS:

 
((BindingProvider)port).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY,
Boolean.TRUE);
        ((BindingProvider)port).getRequestContext().put("JSESSIONID",
jsessionId);

But it is not received in the WS implementation service.
(I'm checking that using @Inject Cookies)

Regards,
Matias.

Reply via email to