4 Replies Latest reply on Sep 24, 2014 7:18 AM by jaikiran pai

    How and where to add environment variables when i am running jboss AS 7.1 in standalone mode

    Md Sarfaraz Alam Newbie

      Hello,

      I have tried to put some environment variable in standalone.conf like this:

       

      # Start Added by don for CXF SOAP Services

      JAVA_OPTS="$JAVA_OPTS -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl -Djavax.xml.soap.SOAPConnectionFactory=weblogic.wsee.saaj.SOAPConnectionFactoryImpl"

      #JAVA_OPTS="$JAVA_OPTS -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParser=org.apache.xerces.jaxp.SAXParserImpl"

      JAVA_OPTS="$JAVA_OPTS -DWORKING_DIRECTORY=C:\app\cte\localinstall -Dcentral.tax.engine.db=java:jboss/centralTaxEngine -Dcte.payload.dump.dir=C:\app\cte\localinstall\dump -Dcte.config.dir=C:\app\cte\localinstall\config"

      JAVA_OPTS="$JAVA_OPTS -Dcxf.response.encryption.key=cte-itg.austin.hp.com -Dweb.config.dir=C:\app\cte\localinstall\config-fe"

      JAVA_OPTS="$JAVA_OPTS -Dsynchro.tax.engine.db=jdbc.eTaxDB"

      #POST_CLASSPATH=C:\app\cte\localinstall\config

      #PRE_CLASSPATH=C:\app\cte\eclipseWS\centralTaxEngine\EarContent\APP-INF\lib\xalan.jar;C:\app\cte\eclipseWS\centralTaxEngine\EarContent\APP-INF\lib\xercesImpl.jar

      #Start Added by don for CXF SOAP Services

       

      But inside my program when i am doing like this:

       

      System.getProperties("central.tax.engine.db"); i am not getting the value.

       

      Can any body help me here??