In the Resource References dialog box, declare
that your enterprise bean references in its code.
Adding Resource Factories
To add a resource factory declaration do the following:
Click Add to declare a resource factory.
Enter the
in the Coded Name column. For example, if the JNDI lookup
of a DataSource resource is java:comp/env/jdbc/TheDataSource,
enter jdbc/TheDataSource.
Select the
from the drop-down menu in the Type column.
Select either Application or Container from the drop-down menu in the
Authentication column to indicate whether you want the authentication
of resource users to be managed by the enterprise bean or the container.
Deselect the checkbox in the Sharable column if the connections obtained
through the resource factory reference cannot be shared.
The default value is Shareable.
Click the folded paper icon in the rightmost column to enter
a description of the resource.
For each resource reference in the list,
enter the JNDI name of the resource factory into the JNDI Name
field. You may also type a JNDI Name into this field. The
JNDI name is used by the client to locate the resource at runtime.
Deleting Resource Factories
To delete a reference, select the row containing the
reference and click Delete. A confirmation dialog will ask you if
you really want to delete the
reference.