You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Daniel Santos <ds...@att.com> on 2006/11/20 22:57:03 UTC

Getting javax.naming.Context from StandardServer?

Ok, this is question#2, perhaps more simple.  How can I retrieve the
javax.naming.Context that the Server object uses from outside of a
webapplication?  I'm writing a custom realm and I want it to use pluggable
components to meet different needs.

It would appear that when my Realm's start() is called, the StandardContext
isn't yet fully initialized (makes sense, starting the Realm is part of
that).  So I moved my support objects under <GlobalNamingResources> under
<Server>, so now I just need to get an instance of them and I'm fixed.

Thanks,
Daniel
-- 
View this message in context: http://www.nabble.com/Getting-javax.naming.Context-from-StandardServer--tf2672134.html#a7451590
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org