Not really just deploy the same n times
Le 3 juin 2013 00:03, "Dimitri" <[email protected]> a écrit :

> Romain,
>
> Thanks for the answer. Yes I've read that blog post, but I was sure that
> in this case the realm will be bound to a single webapp and won't be
> accessible for other applications. In my case, it is essential that the
> realm serves multiple webapps.
>
> Dimitri
>
> > Hi
> >
> > Using lazy realm you should be able to get cdi easily in your realm
> > Le 2 juin 2013 21:51, "Dimitri" <[email protected]> a écrit :
> >
> > > Hi,
> > >
> > > I'm wondering what are the best practices for using JPA in JAAS
> > > LoginModules.
> > >
> > > In my scenario, a custom JAAS LoginModule will be used via
> > > org.apache.catalina.realm.JAASRealm. The LoginModule should operate
> > > relational data, so I'm looking for using JPA. The realm will be shared
> > > by several webapps belonging to the same SSO domain. Thus, the realm
> > > will be configured in server.xml, for a <Host> that has
> > > org.apache.catalina.authenticator.SingleSignOn plugged.
> > >
> > > 1) Is it possible to use CDI in this scenario? If not, what is the
> > > proper way to obtain EntityManager?
> > > 2) Is it possible to share persistence unit between a realm and one of
> > > the webapps? There will be a manager webapp that is supposed to operate
> > > exactly the same data that LoginModule will.
> > >
> > > Thanks!
> > > Dimitri
> > >
> > >
>
>
>

Reply via email to