A resource reference supports application provider access to a resource (such as a data source, URL, or mail provider) using a logical name rather than the actual name in the run time environment. This ability insulates the application provider from the run time configuration, and simplifies the process of changing the run time configuration.
Resource references are declared in the deployment descriptor by the application provider. At some point in the application deployment process,
bind the resource reference to the actual name of the resource in the run time environment.
This article describes how to update the resource references of an enterprise application using an assembly tool such the Application Server Toolkit (AST)
or Rational Web Developer.
Right-click the module whose resource references you want to change and click Open With > Deployment Descriptor Editor .
For servlets and application clients, click Add . For EJB
modules, select the particular bean and click Add .
Select the resource reference option and click Next .
Specify the settings and click Finish .
Optional: Select the References tab and, under WebSphere Extensions , select an isolation level. If you choose to forego this step, the isolation level defaults to TRANSACTION_NONE.
Optional: Under WebSphere Bindings, specify a JNDI name. If you choose to forego this step you can set (or override) the binding when the application is deployed.
Close the deployment descriptor editor and save your changes.
ResultFiles for the updated module are shown in the Project Explorer view.
You can generate EJB deployment code and deploy an EJB module to a target server in one step. In the Project Explorer view, right-click on the EJB project and click Deploy .