O'Reilly logo

J2EE™ Applications and BEA™ WebLogic Server™ by Sandra L. Emerson, Rob Woollen, Michael Girdley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required