use a ServletContainerInitializer
(http://docs.oracle.com/javaee/6/api/javax/servlet/ServletContainerInitializer.html).
For spring you have WebApplicationInitializer and @Order.


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2014-12-15 11:36 GMT+01:00 mauro2java2011 <[email protected]>:
> Hi. I would write i custom ContextListener.
>
> If i understand it is calked when tge server classloader load the web app.
>
> Now i would set SystemProoertues fir use into webapplication.
> The ServletCobtextListener is called after tge context is loaded and so not
> is ok.
>
> Wgat classvi gave to extends for cystom ContextLiaderListebet and hie i can
> cobfugure systemprioerties and services loader for use only with the web app
> loaded  ?
>
> How configure into web.xml or only add into meta-inf context.xml ?
> Mauro
>
>
>
>
>
> --
> View this message in context: 
> http://tomee-openejb.979440.n4.nabble.com/write-and-use-custom-ContectLoaderListener-tp4673224.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to