1 Reply Latest reply on Feb 23, 2010 12:58 PM by Peter Johnson

    How to set environment variables in JBoss?

    Raul Pastor Newbie

      Hello to all


      We are developing an application that is deployed in a JBoss.


      This application calls a web service, so we would like to define a properties file like this:



      URL_PRODUCTION = ...


      and define an environment variable in the JBoss which contains the information about the execution context


      for example --> ENVIRONMENT = DEVELOPMENT


      Anyone knows:


      1) How to set environment variables in JBoss

      2) How to get these variables from an applicacion deployed in JBoss in runtime execution?


      Thank you !!