1 Reply Latest reply on Oct 19, 2005 6:18 PM by Thomas Diesler

    howto specify application specific config properties in JBos

    Neeraj Bansal Newbie


      Hi All,

      I am looking for a way in JBoss to config my application specific properties. I was hoping that there would be a way to specify them in web.xml or some other xml file which is read when application is deployed and available to the application. I could not find much on this. If you know howto do it, let me know.

      e.g
      In .NET there is a way to specify appsettings in web.config
      like




      I am looking for a way to do above in Jboss

        • 1. Re: howto specify application specific config properties in
          Thomas Diesler Master

          In web.xml you can specify env-entry that will be bound to components env context in JNDI

          <!--
          The env-entry element contains the declaration of an
          application's environment entry. This element is required to be
          honored on in J2EE compliant servlet containers.
          -->
          
          <!ELEMENT env-entry (description?, env-entry-name, env-entry-value?,
          env-entry-type)>
          


          You could also load a normal properties file that you package with your war from the thread context class loader