On Thu, Jan 6, 2011 at 9:13 PM, Michael Gentry <mgen...@masslight.net>wrote:

> Hi Igor,
>
> This does everything that @SessionState does, but gives you more
> control.  Plus you can easily use a data type more than once.
>
>
>
Nope, with @SessionState you have auto-building of SSOs and co-called
accompany-fields to check the existence of the SSO.  You have
ApplicationStateManager which gives you the power over your SSOs. And you
don't have to repeat yourself as you don't have to provide the session key
every time you use the annotation. In fact, you don't even need the session
for SSOs as you can change the persistent strategy. Furthermore, if your SSO
is a Hibernate entity only its primary key is persisted into the session,
not the entire object. This ensures a lean HTTP session usage.

All this is not possible with @SessionAttribute. Convinced?



-- 
Best regards,

Igor Drobiazko
http://tapestry5.de

Reply via email to