Hi Mauro,

you define the configuration of the JAAS in server.xml.

You can see examples like:
https://github.com/apache/tomee/tree/master/examples/rest-jaas
https://github.com/apache/tomee/tree/master/examples/cdi-realm
https://github.com/apache/tomee/tree/master/examples/realm-in-tomee

Maybe this can help you. :)
CDI Realm.. It seem very cool! (I didn't know)


On Sun, Jun 7, 2015 at 7:55 AM, mauro2java2011 <[email protected]>
wrote:

> What sisgnify global ?  For all  webapps on tomee ? But into that case it
> is eqyals for all.
> Howvis read from tomee the system.properties whut word global ?
> Il 07/giu/2015 00:30, "Daniel Cunha [via TomEE & OpenEJB]" <
> [email protected]> ha scritto:
>
> > Hi Mauro,
> >
> > in line
> >
> >
> > On Sat, Jun 6, 2015 at 6:44 PM, mauro2java2011 <[hidden email]
> > <http:///user/SendEmail.jtp?type=node&node=4675180&i=0>>
> > wrote:
> >
> > > Hi all.
> > >
> > > From
> > >
> > >
> >
> http://docs.oracle.com/javaee/6/api/javax/servlet/ServletContainerInitializer.html
> > > <
> > >
> >
> http://docs.oracle.com/javaee/6/api/javax/servlet/ServletContainerInitializer.html
> > > >
> > > i have read on mechanism of META-INF/services/
> > >
> > > So i have understand that i can to make  some initialization on
> > container
> > > from jar put into web-inf/lib/*.jars.
> > > But i not understund The annotation  HandlesTypes.
> > >
> > > Where i have to put?
> > >
> >
> > About HandleTypes, you can look a good sample and explanation here:
> > http://www.codejava.net/java-ee/servlet/handlestypes-annotation-examples
> >
> > Other question:
> >
> > >
> > > Suppose that into a jar into web-inf/lib of a webapp i put a class
> named
> > > myServletContainerInitializer that implement
> ServletContainerInitializer
> > .
> > > Into method onStartup i set for example the fileconfig for ModuleLigin
> > of
> > > jaas.  So i can to make a different configuration for each webapps ? Or
> > the
> > > fileconfig for ModuleLogin of jaas  is equals for all webapps deployed
> ?
> > >
> > > Pratically my questionvitvis : i can set systemProperties with same key
> > > but
> > > different value for each webapps for configure different modulelogin
> for
> > > each webapp  depoyed on tomee?
> > >
> > >
> > If I understand your question.. I'll say:
> > Yes, you can do it,  since that your classloader is independent by
> webapp.
> >
> > It's similar like this:
> >
> >
> https://github.com/tomitribe/agoncal-application-petstore-ee6/tree/master/src/main/tomee/conf
> >
> > I can have the same configuration (keys), but different value for each
> > deploy (context).
> >
> >
> > > Mauro
> > >
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://tomee-openejb.979440.n4.nabble.com/ServletContainerInitializer-tp4675178.html
> > > Sent from the TomEE Users mailing list archive at Nabble.com.
> > >
> >
> >
> >
> > --
> > Best regard,
> > Daniel Cunha (soro)
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://tomee-openejb.979440.n4.nabble.com/ServletContainerInitializer-tp4675178p4675180.html
> >  To unsubscribe from ServletContainerInitializer, click here
> > <
> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4675178&code=bWF1cm8yamF2YTIwMTFAZ21haWwuY29tfDQ2NzUxNzh8LTExMTcxODc2MjU=
> >
> > .
> > NAML
> > <
> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/ServletContainerInitializer-tp4675178p4675186.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>



-- 
Best regard,
Daniel Cunha (soro)

Reply via email to