Tweak resource references using the Assembly Toolkit
A resource reference delineates access to resources such as a data sources, URLs, and mail providers by using a logical name rather than the actual name in the run time environment.
Resource references are declared in the deployment descriptor by the application provider. During the application deployment process, resource reference names are bound to the the actual name of the resource in the WebSphere environment.
- Start the Assembly Toolkit.
- Import the enterprise application EAR(file) you want to change.
- Display the resource references for the type of application component...
- If an enterprise bean uses the resource reference, go to...
EAR_file | EJB Modules | EJB_module | Session Bean or Entity Bean | enterprise bean- If a servlet uses the resource reference, go to...
EAR_file | Web Modules | Web_module
- If an application client uses the resource reference, go to...
EAR_file | Application Clients | application_client_module
- 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.
- Select the References tab and, under WebSphere Extensions, select an isolation level.
- Under WebSphere Bindings, specify a JNDI name.
- Close the deployment descriptor editor and save your changes.
- Generate the code.
See Also
Data sources
Data access : Resources for learning