You add a connection factory to the J2C resource adapter.
Web applications request functions from J2C style connectors by first
performing a lookup of its associated connection factory using a specific
JNDI name.
Before you begin
Before adding the J2C connection factory, ensure that the
IMS™ TM resource
adapter has been installed.
About this task
Complete the following
steps to add a J2C connection factory:
Procedure
- In the left frame of the IBM® WebSphere® Application Server administrative
console, expand and
click Resource adapters.
- Click the link for the IMS TM resource
adapter.
- Under the Additional Properties section, click J2C
connection factories. You might need to scroll down to
see this link.
- Click New to add a new J2C connection
factory for this resource adapter.
- In the Name field, enter mfs_cf or
other names as the name of this new connection factory for the IMS TM resource
adapter.
- In the JNDI name field, enter myJNDI.
Click Apply to apply your changes.
Important: This value should match the JNDI name of the managed
connection factory setting that was specified during the Phonebook
MFS J2C service creation.
- Next, under Additional Properties, click Custom
properties and specify the connection properties for the
connection factory. You must specify the values for HostName, PortNumber,
and DataStoreName. After setting the value for each
property, click OK.
- When you are finished entering values for connection properties,
click Save in the Message(s) box
at the top of the Custom Properties page.
Important: if you made any changes to the IMS TM resource
adapter, you must restart WebSphere Application Server.