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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

258 <strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong> <strong>V5</strong><br />

you still need to deploy an application to make use of this support. This is<br />

described in the next section.<br />

10.2.5 Deploying our sample enterprise applications<br />

EAR files generated in <strong>WebSphere</strong> Studio cannot be directly deployed to<br />

<strong>WebSphere</strong> Application Server for z/OS. You must use the Application Assembly<br />

Tool (AAT) for z/OS to generate an EAR file that <strong>WebSphere</strong> can use. Using the<br />

AAT for z/OS also gives you the opportunity to change some deployment<br />

information. We downloaded the AAT for z/OS from the following Web site:<br />

https://www6.software.ibm.com/dl/websphere20/zosos390-p<br />

In this section, we used our sample J2EE enterprise application CTGTesterCCI.<br />

<strong>The</strong> source code for this application is provided in the additional material for this<br />

book. See Appendix C, “Additional material” on page 389.<br />

Deploying the enterprise application<br />

1. Start the AAT for z/OS by clicking Start -> Programs -> <strong>IBM</strong> <strong>WebSphere</strong> for<br />

z/OS -> Application Assembly. In the left pane, right-click Applications and<br />

select Import. Specify the location of the CTGTesterCCI.ear, and click OK.<br />

<strong>The</strong> file should import successfully.<br />

Next, you will probably receive a few pop-up windows warning about missing<br />

classes (as shown in Figure 10-13). <strong>The</strong> first one of these was for<br />

javax.resource.ResourceException, to which we answered Yes. We were<br />

then required to select the JAR file containing this class (connector.jar) to be<br />

added to our EAR file. This is because our application was designed to throw<br />

a ResourceException and so this class is needed to generate the deployment<br />

code. To all the other questions we replied No, because we wanted to have<br />

the classes taken from the <strong>WebSphere</strong> runtime environment, as otherwise we<br />

found that we could have class loader problems.<br />

Important: It is possible to circumvent these errors by adding the JARs to<br />

the variable USER_AAT_CLASSPATH.<br />

Figure 10-13 AAT file import

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

Saved successfully!

Ooh no, something went wrong!