Print Page as PDF
gov.va.med.environment.Environment ICR (5172)

gov.va.med.environment.Environment    ICR (5172)

Name Value
NUMBER 5172
IA # 5172
DATE CREATED 2008/04/11
CUSTODIAL PACKAGE FOUNDATIONS
USAGE Supported
TYPE Other
DBIC APPROVAL STATUS APPROVED
NAME gov.va.med.environment.Environment
GENERAL DESCRIPTION
public class Environment extends java.lang.Object:
Environment settings for J2EE server use.
STATUS Active
KEYWORDS
  • Foundations
  • FoundationsLib
  • Environment
DURATION Till Otherwise Agreed
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
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.
VARIABLES TYPE VARIABLES DESCRIPTION
return value Output
gov.va.med.environment.ServerType: an enumerated J2EE
server type (weblogic, tomcat, websphere, etc.)
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.
VARIABLES TYPE VARIABLES DESCRIPTION
return value Output
boolean: true if the server is a VA production
server, false if not.
DATE ACTIVATED 2008/07/11