Managing Enterprise Bean Local References

Use

This procedure enables you to set enterprise bean local references. You can add, modify, or remove a particular reference.

The displayed tabs and fields correspond to the following elements in web.xml :

<!ELEMENT ejb-local-ref (description?, ejb-ref-name, ejb-ref-type,

local-home, local, ejb-link?)>

<!ELEMENT description (#PCDATA)>

<!ELEMENT ejb-ref-name (#PCDATA)>

<!ELEMENT ejb-ref-type (#PCDATA)>

<!ELEMENT local-home (#PCDATA)>

<!ELEMENT local (#PCDATA)>

<!ELEMENT ejb-link (#PCDATA)>

Procedure

To set bean local references choose Start of the navigation pathEnvironment Next navigation step EJB Local References.End of the navigation path

If You Want To

Then

Add a bean local reference

  1. Enter bean reference name.The reference is relative to java:comp/env context and it must be unique in the web application.

  2. Select the bean type from the Bean Type drop-down menu.

  3. Enter EJB Local Home value.It is a fully-qualified name of the bean local home interface.

  4. Enter the fully-qualified name of the bean local interface.

  5. Enter the name of the bean in EJB Name.

  6. Enter the name the bean is bound to the Naming System with in JNDI Name.

  7. Enter bean reference description (optional).

  8. Choose Add. The references are added and displayed in the EJB References list.

Modify a bean local reference

  1. Select a reference from the list of available ones.

  2. Modify the entered informationYou can change all settings except the Reference Name.

  3. Choose Modify.

Remove a bean local reference

Select the reference you want to remove from the list and choose Remove.