Il 07/giu/2015 13:10, "Mauro Chi" <[email protected]> ha scritto:
> But please from the github sampkes of petstore app where i can put the > configuration for fileconfig of jaas that it is single for single web app ? > > I have view tge row commented with # onto file system.properties . Each > row after # init with the word global. > > But whi ? > 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-tp4675178p4675191.html Sent from the TomEE Users mailing list archive at Nabble.com.
