EJB Environment

Almost every program requires a means for users to override configuration parameter values. Standalone Java programs typically use Java system properties, and these values can be changed by specifying -D options to the Java virtual machine. Likewise, EJB components can use the EJB environment to read configuration parameters whose values may be adjusted by the deployer. The EJB environment enables the bean code to refer to the configuration parameters with logical names that can then be assigned values during deployment. Because the EJB code only refers to the logical name, the values may be changed without touching the bean classes.

Declaring Environment Variables

EJB environment values are declared in the ejb-jar.xml deployment ...

Get J2EE™ Applications and BEA™ WebLogic Server™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.