Re: Changing default session behavior.

2012-08-10 Thread kata
. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Changing-default-session-behavior-tp5715141p5715226.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

Re: Changing default session behavior.

2012-08-08 Thread Lenny Primak
gt;>>>> annotations would also work as intended, with clustering and all. >>>>>>>> >>>>>>>> Regards, >>>>>>>> Martin >>>>>>>> >>>>>>>> >>>>>>>>

Re: Changing default session behavior.

2012-08-08 Thread Kalle Korhonen
;> use >>>>>>> the >>>>>>> servlet API in the application instead of the shiro-specific calls. >>>>>>> Ideally >>>>>>> annotations would also work as intended, with clustering and a

Re: Changing default session behavior.

2012-08-08 Thread Lenny Primak
use >>>>>>> the >>>>>>> servlet API in the application instead of the shiro-specific calls. >>>>>>> Ideally >>>>>>> annotations would also work as intended, with clustering and all. >&g

Re: Changing default session behavior.

2012-08-08 Thread kata
t;> annotations would also work as intended, with clustering and all. >>>>>> >>>>>> Regards, >>>>>> Martin >>>>>> >>>>>> >>>>>> Alex Kotchnev-2 wrote >>>>>>> >>>&g

Re: Changing default session behavior.

2012-08-08 Thread Lenny Primak
t;>>>> @SessionState. >>>>>> Both Shiro's subject.getSession() and the @Persist annotation store >>>>> their >>>>>> values in the same h

Re: Changing default session behavior.

2012-08-08 Thread Alex Kotchnev
tation store > >>> their > >>>> values in the same http session. Is that not working for you ? > >>>> > >>>> Cheers, > >>>> > >>>> Alex K > >>>> > >>>> On Wed, Aug 8, 2012 at 7:20 AM, kata

Re: Changing default session behavior.

2012-08-08 Thread Lenny Primak
gt; Alex K >>>> >>>> On Wed, Aug 8, 2012 at 7:20 AM, kata <januszkiewicz.marcin@> >>> wrote: >>>> >>>>> Hi all, >>>>> >>>>> I am currently using shiro and the tapestry-security plugin to manage >&

Re: Changing default session behavior.

2012-08-08 Thread Alex Kotchnev
It seems that you could override the session persistence strategy and replace the usage of http session with Shiro's session -e.g. the implementation seems to be pretty straightforward e.g. inside of Tapestry , look at SessionApplicationStatePersistenceStrategy ( http://www.koders.com/java/fidD25B0

Re: Changing default session behavior.

2012-08-08 Thread kata
y >> >> SecurityUtils.getSubject().getSession(). However, this means that the >> >> application is peppered with fragments of shiro-specific code. Since >> >> shiro >> >> uses the servlet session API, is there a way to do this in a way that >> is >

Re: Changing default session behavior.

2012-08-08 Thread Lenny Primak
So you are using native Shiro session management. Tapestry / Servlet API don't support that. If you use a 'real' JEE server like Glassfish, web sessions are clustered / cached properly for you, without Shiro native sessions or customDAO etc. You cannot use Shiro native session management and ex

Re: Changing default session behavior.

2012-08-08 Thread kata
gt;> Cheers, >>>>> >>>>> Alex K >>>>> >>>>> On Wed, Aug 8, 2012 at 7:20 AM, kata <januszkiewicz.marcin@> >>>>> wrote: >>>>> >>>>>> Hi all, >>>>>> >>&g

Re: Changing default session behavior.

2012-08-08 Thread Lenny Primak
t;>>>> I am currently using shiro and the tapestry-security plugin to manage >>>>> sessions and persist data. Everything works fine when getting the >>>>> session >>>>> by >>>>> SecurityUtils.getSubject().ge

Re: Changing default session behavior.

2012-08-08 Thread kata
>>> sessions and persist data. Everything works fine when getting the >>>> session >>>> by >>>> SecurityUtils.getSubject().getSession(). However, this means that the >>>> application is peppered with fragments of shiro-specific code. Since >&

Re: Changing default session behavior.

2012-08-08 Thread Alex Kotchnev
application is peppered with fragments of shiro-specific code. Since > >> shiro > >> uses the servlet session API, is there a way to do this in a way that is > >> transparent to the application, and hopefully still allow me to use > >> annotations like @Persist and @SessionState? > >>

Re: Changing default session behavior.

2012-08-08 Thread Kalle Korhonen
On Wed, Aug 8, 2012 at 4:20 AM, kata wrote: > I am currently using shiro and the tapestry-security plugin to manage > sessions and persist data. Everything works fine when getting the session by > SecurityUtils.getSubject().getSession(). However, this means that the > application is peppered with

Re: Changing default session behavior.

2012-08-08 Thread Lenny Primak
is >>> transparent to the application, and hopefully still allow me to use >>> annotations like @Persist and @SessionState? >>> >>> Thanks, >>> Martin >>> >>> >>> >>> -- >>> View this message in context: >>

Re: Changing default session behavior.

2012-08-08 Thread kata
ons like @Persist and @SessionState? >> >> Thanks, >> Martin >> >> >> >> -- >> View this message in context: >> http://tapestry.1045711.n5.nabble.com/Changing-default-session-behavior-tp5715141.html >> Sent from the Tapestry - User mailing list

Re: Changing default session behavior.

2012-08-08 Thread Alex Kotchnev
message in context: > http://tapestry.1045711.n5.nabble.com/Changing-default-session-behavior-tp5715141.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-

Changing default session behavior.

2012-08-08 Thread kata
shiro uses the servlet session API, is there a way to do this in a way that is transparent to the application, and hopefully still allow me to use annotations like @Persist and @SessionState? Thanks, Martin -- View this message in context: http://tapestry.1045711.n5.nabble.com/Changing-default