[jboss-user] [JNDI/Naming/Network] - JNDI external file access? (like context.xml in tomcat)

MrKimi do-not-reply at jboss.com
Wed May 16 20:50:52 EDT 2007

I am migrating a tomcat .war file over to jboss. The code relies on JNDI lookups to get information from the context.xml file. This information is part of the local deployment so it varies on different deployments of the war

I read here: http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingContextDotXML that you can specify the context.xml that is has to live in the WEB-INF, that is it has to be built into the war file. This means each war file has to contain specific configuration information so that doesn't help.

Other options such as specifying things in jboss-web.xml also require the information to be inside the war file (eg http://www.jboss.com/index.html?module=bb&op=viewtopic&t=105092 )

Is there a way I can tell my war file that it can find JNDI information in a simple file somewhere? I don't mind that it isn't a context file format, as long as the code still sees JNDI. The information is ideally only available to the application, but I'll settle for available to all of them.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046333#4046333

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046333

More information about the jboss-user mailing list