There is no plan to integrate Shiro. That said, if as you say it
doesn't depend on the servlet API, you can probably include it in your
Play project.
As far as I'm concerned I wouldn't do it tho, I've looked at the doc
and it seems like there is server-side sessions. By using it looks
like you're going to lose one of the key feature of Play,
statelessness.
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>
--
Erwan Loisant
On Thu, Jan 13, 2011 at 19:55, Les <lhazl...@gmail.com> wrote:
> So, again, Shiro doesn't require sessions. It will work perfectly
> fine in Play or any other stateless framework. It does not require
> the Servlet API, but will leverage it in Servlet environments.
Well, that's good to hear that Shiro doesn't force you to create
sessions. That said you could perfectly have sessions in Play, it's
just that they are not provided by default and it's not recommended to
have any.
Also kudos for the independence to the servlet API, too many Java
libraries depends on it when they don't need to.
> P.S. As an architect who has been responsible for very large websites
> (think millions of users), there is nothing wrong with server-side
> state *if it is managed appropriately*. Enterprise caches (Memcache,
> Coherence, Ehcache+Terracotta, etc) are an excellent option for
> maintaining server state, and have been used with great success (Shiro
> plugs in to these for sessions if you want to use them). 100%
> statelessness is nice, but often not achievable in the real world -
> the application teams should decide what they need and act accordingly
> rather than hold on to an ideal tenet that may not be achievable or
> even necessary.
I have yet to see a real world application that can't be implemented
without server-side sessions (and don't talk about a shopping carts).
On the other hand the benefits of stateless is very clear to me. Even
if you manage your sessions correctly, you still have a bunch of
problems to solve you wouldn't have in a stateless app.
And BTW, there's no such thing as 99% stateless: your app is either
stateless or it's not. The one percent stateful means that you need to
keep data in memory for sessions, you need to have some kind of
synchronization between your fronts (or ensure a given user always get
to the same server)...
--
Erwan Loisant