A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
define and read environment variable
Joined: Aug 27, 2002
Sep 13, 2011 20:52:00
Im using Weblogic 10.3.1. I have server defined in weblogic and on server startup i have defined a variable
enviroment , this variable will have value TEST and in PROD it will be PROD.
My questions are :
1) is it the right way to define an environment variable ?
2) how can i access the variable and value from JAva?
I tried System.getProperty("server.env"); but its returning null..
Thanks in advance,
SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
I agree. Here's the link:
subject: define and read environment variable
Define JVM Arguments using Weblogic 11g Admin Console
Page Expired in IE
Managing Properties files
[SPRING] Using .properties File
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014