You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by gumar <gu...@gmail.com> on 2012/10/16 15:58:23 UTC
Re: Support multiple webapps on same jvm
I'm also facing this scenario. Does anyone have any clue? Thanks!
--
View this message in context: http://shiro-user.582556.n2.nabble.com/Support-multiple-webapps-on-same-jvm-tp7494747p7577875.html
Sent from the Shiro User mailing list archive at Nabble.com.
Re: Support multiple webapps on same jvm
Posted by Les Hazlewood <lh...@apache.org>.
Agreed - this should be quite easy. Each webapp has its own shiro config
and SecurityManager instance - each .war should declare its own
WebEnvironment and Shiro Filter in their respective web.xml files - that
should be all that is required.
--
Les Hazlewood | @lhazlewood
CTO, Stormpath | http://stormpath.com | @goStormpath | 888.391.5282
Stormpath wins GigaOM Structure Launchpad Award! http://bit.ly/MvZkMk
On Tue, Oct 16, 2012 at 7:11 AM, <sh...@xoxy.net> wrote:
> Assuming that your application server uses a delegating classloader
> scheme, you should be able to accomplish this by packaging a separate copy
> of the Shiro libraries in each web application. Otherwise, you'd probably
> need to write your own integration layer that somehow maps classes from a
> particular web application to particular security configurations (with a
> ThreadLocal?).
Re: Support multiple webapps on same jvm
Posted by sh...@xoxy.net.
Assuming that your application server uses a delegating classloader scheme,
you should be able to accomplish this by packaging a separate copy of the
Shiro libraries in each web application. Otherwise, you'd probably need to
write your own integration layer that somehow maps classes from a
particular web application to particular security configurations (with a
ThreadLocal?).