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.

To show what the resource reference is bound to, it is necessary to open the<br />

ibm-ejb-jar-bnd.xmi file. To view this file, from the J2EE Perspective Navigator<br />

view, expand CTGTesterCCIEJB -> ejbModule -> META-INF, right-click<br />

ibm-ejb-jar-bnd.xmi, and select Open. Click the Bindings tab to see the<br />

Bindings pane.<br />

To see the resource reference binding, from the Bindings pane expand<br />

CTGTesterCCIEJB -> CTGTesterCCI -> ResourceRef ECI and click<br />

ResourceRef ECI. As shown in Figure B-53, the resource reference ECI is<br />

bound to the JNDI name eis/<strong>CICS</strong>A. This can be changed to a deployed<br />

connection factory at deploy time. However, when testing we had to define a<br />

connection factory in the test server with the JNDI name eis/<strong>CICS</strong>A so that this<br />

reference would be valid and we could test using managed <strong>CICS</strong> connections.<br />

Figure B-53 CTGTesterCCI bean resource reference binding<br />

To see the JNDI name our session bean is bound to, from the Bindings pane click<br />

CTGTesterCCI. Figure B-54 on page 386 shows that our bean has a suggested<br />

JNDI name of ejbs/CTGTesterCCI. This is the same name we used in our Web<br />

deployment descriptor as the JNDI name of the session bean, in Figure B-46 on<br />

page 379. Because these names are the same, the servlet will look up our<br />

session bean using the same JNDI name as it was bound with. <strong>The</strong>refore the<br />

servlet will find our session bean.<br />

Appendix B. Sample applications 385

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

Saved successfully!

Ooh no, something went wrong!