Start of Content Area

Procedure documentation Declaring Environment Entries  Locate the document in its SAP Library structure

Use

Use this procedure to declare all environment entries that the enterprise bean expects to be provided in its environment at runtime.

You can customize your enterprise bean by editing its environment entries during deployment or assembly.

Procedure

...

       1.      Open the ejb-jar.xml

       2.      From the right-hand pane, choose the Enterprise Beans tab

       3.      Open the corresponding tree structure according to the type of your enterprise bean (session, entity, or message-driven)

       4.      From your bean tree sub-structure, select env-entry

       5.      Choose Add

       6.      Enter the following data for your bean’s environment entry:

Property

Description

Environment Entry Name

The name of the bean’s environment entry. The name is a JNDI name relative to the java:comp/env context. This name must be unique within the enterprise bean.

Environment Entry Type

A drop-down list that contains the possible fully-qualified Java types of the environment entry value, which is expected by the bean’s source code.

Environment Entry Value

The value of the bean’s environment entry.

Description

A description of the environment entry.

 

The declared environment entry appears as sub-node under the env-entry node.

Note

To remove an environment entry, select it and choose Remove.

 

 

End of Content Area