Environment Entries

The Environment Entries page of the Edit Enterprise Bean Wizard will display when Environment Entries is selected on the Configuration Options page of the wizard.

Use the Environment Entries page to list any referenced in the code of your enterprise bean. Optionally, you can provide a default value for the environment entry, and/or a description.

Adding Environment Entries

To add Environment Entries Referenced in Code:

  1. Click Add.
  2. Enter the name of the environment entry in the Coded Entry column. This value is the environment entry name relative to the java:comp/env context.
  3. Select a type from the drop-down list in the Type column. The type that you select here must match the type hard-coded in your enterprise bean code and be the type of the object returned from the JNDI lookup method.
  4. You can provide a default value in the Value column, or you can provide it later, after you finish creating your enterprise bean. The value in this column must be a String that is valid for the constructor of the specified type that takes a single String parameter, or for java.lang.Character, a single character.
  5. You can add a description of the entry by clicking the folded paper icon in the rightmost column.

Deleting an Environment Entry

To delete an entry, select the row containing the entry and click Delete. A confirmation dialog will ask you if you really want to delete the entry.


Copyright 1999-2003 Sun Microsystems, Inc. All Rights Reserved.