In the module deployment editor, you can add a resource
reference that enables a Java component in the assembly diagram to
access the resource. For example, you can add a JDBC data source reference
that enables a Java component in the assembly diagram to access data
in a relational database.
About this task
To use a resource reference in an assembly diagram:
Procedure
- In the Business Integration view,
select the module that contains your web service import.
- Right-click the selected module and select Open
Deployment Editor. The module deployment editor opens.
- Click the Design tab.
- Create a resource reference by completing the following
steps:
- Select the Resource References node.
- Click Add and select Resource Reference. A Resource Reference Wrapper and
a Resource Reference node is added under the Resource References node.
- Select the Resource Reference node.
- In the Name field, type the name
that you want to assign to the resource reference. For example, jdbc/DataSourceRefOnModule.
- In the Authentication field,
select the type of authentication that you want to use. For example, Container.
- In the Sharing scope field, select
the sharing scope that you want to use. For example, Shareable.
- In the Description field, type
a description for the data source reference.
- Set a WebSphere-specific binding on the resource reference
by completing the following steps:
- Select the Resource Reference Wrapper node.
- Click Add and select WebSphere Binding. The Resource Reference WebSphere Binding
window opens.
- In the JNDI name field, type
a JNDI name. For example, jdbc/li536pip.
- Set the JAAS Configuration as
needed. Note that JAAS Configuration can only be set for specific
types of resource references that have authentication fields that
have been set to Container.
- Click OK to close the window
box. A WebSphere Binding node is added under Resource Reference Wrapper.
- Add properties under the WebSphere Binding node as needed.
- Set a WebSphere-specific extension on the resource reference
by completing the following steps:
- Select the Resource Reference Wrapper node.
- Click Add and select WebSphere Extension. The WebSphere Extension node is
added under Resource Reference Wrapper.
- In the Isolation level field,
select an isolation level.
- In the Connection policy field,
select a connection policy.
- Press Ctrl-S to save your changes
and then close the module deployment editor.
- If your server is already running in the Servers view,
click the Build Activities tab to open the
Build Activities view and then click Update Running Servers.