01.01.2013 Views

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Configure a connection factory<br />

Every resource adapter installed in <strong>WebSphere</strong> Application Server should have<br />

one or more connection factories associated with it. A connection factory<br />

contains deployment specific connection information. In the case of the <strong>CICS</strong><br />

resource adapters, this information includes:<br />

► <strong>The</strong> connection URL of the <strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong><br />

► <strong>The</strong> <strong>CICS</strong> server to communicate with<br />

► <strong>The</strong> <strong>CICS</strong> program to call, or the <strong>CICS</strong> transaction to start<br />

► A user ID and password to flow to <strong>CICS</strong><br />

At least one connection factory is required to use the resource adapter in a<br />

managed environment. Setting up multiple connection factories allows you to<br />

configure a collection of possible connection options. When you deploy an<br />

enterprise bean into <strong>WebSphere</strong> Application Server, you must select which<br />

connection factory you wish to use.<br />

This section explains how to create and configure a connection factory for the<br />

<strong>CICS</strong> ECI resource adapter. This connection factory will be used in the next<br />

section to test the J2EE Connector Architecture support in the application server.<br />

► In order to open the Connection Factories window in the <strong>WebSphere</strong><br />

administrative console, take the following steps:<br />

a. Expand <strong>WebSphere</strong> Administrative Domain -> Resources -> J2C<br />

Resource Adapters. This will display the resource adapter you have<br />

installed.<br />

b. Expand the <strong>CICS</strong> ECI resource adapter, and select J2C Connection<br />

Factories. A list of all connection factories created for this resource<br />

adapter (if any) will be displayed in the right pane.<br />

► To create a new connection factory, take the following steps:<br />

a. Right-click J2C Connection Factories and select New. This will open the<br />

J2C Connection Factory Properties window.<br />

b. In the General tab enter the following:<br />

In the Name field, enter a name for the connection factory. Use<br />

SCSCPJA1 - local.<br />

Optionally, enter a path in the JNDI binding path field. We used<br />

eis/SCSCPJA1. If you leave this blank, a JNDI binding path will be<br />

created for you in the format of eis/.<br />

Notice the J2C Resource Adapter field is set to <strong>CICS</strong> ECI.<br />

– <strong>The</strong> Advanced tab allows you to set connection pooling information.<br />

Chapter 11. <strong>CICS</strong> TG and <strong>WebSphere</strong> Application Server for Windows 297

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!