VistALink v1.6

gov.va.med.environment
Class Environment

java.lang.Object
  extended by gov.va.med.environment.Environment

public class Environment
extends java.lang.Object

Environment settings for J2EE server use.


Method Summary
static ServerType getServerType()
          Returns the J2EE server type.
static boolean isProduction()
          Returns whether the administrator has configured the J2EE server to be "production" in a VA-medical-center sense, i.e., is this system operating on production VA data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isProduction

public static boolean isProduction()
Returns whether the administrator has configured the J2EE server to be "production" in a VA-medical-center sense, i.e., is this system operating on production VA data. The source of the setting is the gov.va.med.environment.production JVM argument passed to the J2EE server upon startup. A setting of true desginates the server as a production server; any other value (including not passing the JVM argument at all) marks the server as not a VA production server.

Returns:
true if the server is a VA production server, false if not

getServerType

public static ServerType getServerType()
Returns the J2EE server type. The source of the setting is the gov.va.med.environment.servertype JVM argument passed to the J2EE server upon startup. If JVM arg missing, looks for WebLogic-specific classloader classes to determine if server type is WebLogic. Defaults to return UNKNOWN if the JVM argument is not present.

Returns:
ServerType: JBOSS | ORACLE | SUN_RI_13 | UNKNOWN | WEBLOGIC | JAVASE | WEBSPHERE

VistALink v1.6

VistALink v1.6