2012/4/17 Osipov, Michael <michael.osi...@siemens.com>: > Hi folks, > > I have a resource declared in my context.xml (not a resource link). I want to > retrieve that resource as soon as possible in my realm. I tried start() and > init() but it seems like that at this time the InitialContext is not > available. So at what time can I expect the context being "complete"? > > I am on Tomcat 6.0.35 >
Look at DataSourceRealm for an example. IIRC, what is seen as InitialContext depends on the value of Thread.getContextClassLoader() when InitialContext instance is created. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org