0 Replies Latest reply on Jul 28, 2008 7:35 AM by Ulrike

    Problem with Migration from Tomcat to JBoss

    Ulrike Newbie

      I have a project which currently runs on Tomcat 5.5.17 and needs to be deployed on JBoss AS 4.2.2.GA.

      There is a simple JNDI-lookup:

      Context env = (Context)new InitialContext().lookup("java:comp/env");


      On Tomcat we had ...\conf\Catalina\localhost\myApplication.xml:
      <?xml version="1.0" encoding="UTF-8"?>
      <Context reloadable="true">
       <Environment
       name="myVar"
       override="false"
       type="java.lang.String"
       value="myValue"/>
      </Context>


      How can I configure this on JBoss without changing the application?
      I would like to have a simple config file outside the application that isn't affected by a redeployment of the application.