0 Replies Latest reply on May 16, 2007 8:50 PM by rogerparkinson

    JNDI external file access? (like context.xml in tomcat)

    rogerparkinson

      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
      file.

      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.

      Thanks