*@Lance*
I tried implementing a RequestFilter instead but it looks like Derkoe
didn't do that in the first place for a reason. At some point, I need to
have a HttpServleRequest object, which cannot be obtained from Tapestry's
Request object.

*@Thiago*
I can't use a per-thread service. The user needs to send his credentials
once.

[OT]
On a second thought. Web service clients aren't actually browsers and they
don't deal with cookies, so they can't manage session-ids, or can they ?


*---------------------*
*Muhammad Gelbana*
Java Software Engineer


On Thu, Aug 29, 2013 at 7:39 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Thu, 29 Aug 2013 12:11:32 -0300, Muhammad Gelbana <m.gelb...@gmail.com>
> wrote:
>
>  But I need to initially store some values and retrieve them later on.
>>
>> If I inject the *ApplicationStateManager* in the filter and store values
>> in it, then retrieve these values later on through a tapestry service. How
>>
>> will tapestry know which session is currently active ?
>>
>
> The one used in the given thread, supposing the thread is an HTTP request.
>
>  Shouldn't I wire the *ApplicationStateManager* service with the request
>> session id somewhere ?
>>
>
> No.
>
>  Also after reviewing the api doc for the *ApplicationStateManager
>> *service:
>>
>> http://tapestry.apache.org/**current/apidocs/org/apache/**
>> tapestry5/services/**ApplicationStateManager.html<http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/ApplicationStateManager.html>
>>
>> What does SSO mean ?
>>
>
> "Responsible for managing *session state objects*, objects which persist
> between requests, but are not tied to any individual page or component.
> SSOs are also created on demand. SSOs are typically stored in the session,
> so that they are specific to a particular client."
>
> Probably the best option for you is to define a per-thread service
> wrapping the data you want to pass around instead of putting them in the
> session (supposing you don't need to keep this data between different
> threads).
>
>
> --
> Thiago H. de Paula Figueiredo
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org<users-unsubscr...@tapestry.apache.org>
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to