Skip to main content

skip to main content

developerWorks  >  Rational | Information Management  >

Create a J2C application for an Information Management System (IMS) phonebook transaction using IMS TM Resource Adapter

developerWorks
Go to the previous pagePage 2 of 8 Go to the next page

Document options
PDF format - Fits A4 and Letter

PDF - Fits A4 and Letter
2957 KB (46 pages)

Get Adobe® Reader®


My developerWorks needs you!

Connect to your technical community


Rate this tutorial

Help us improve this content


Task 1: Install the IMS TM Resource Adapter

In this section, you will validate that the WebSphere Application Server runtime environment is available, and then import the IMS TM Resource Adapter.

Using Rational Developer for System z and the J2EE Projects perspective

Start Rational Developer for System z if it is not already started.

  1. Select Start > Programs > IBM Software Development Platform > IBM Rational Developer for System z > IBM Rational Developer for System z
What is a workspace?

A workspace is a directory that stores files for your projects. You can select your own directory or take the default directory. Artifacts created by Rational Developer for System z will be stored in this directory.

Important! Be sure that you are using the right workspace. This Lab uses the directory C:\Workspaces\RDZv7 as your work workspace, as shown in Figure 2.


Figure 2. Workspace Launcher in Rational Developer for System z
verify workspace in dialog
  1. On the Welcome page, click the Workbench icon, as shown in Figure 3:

Figure 3. Workbench icon on the Welcome page
icon


Back to top


Switch to the J2EE perspective

What is a perspective?

A perspective defines the initial set and layout of views in the Workbench window. Within the window, each perspective shares the same set of editors. Each perspective provides a set of functionality aimed at accomplishing a specific type of task, or that works with specific types of resources. For example, the Java perspective combines views that you would commonly use while editing Java source files, while the Debug perspective contains the views that you would use while debugging Java programs.

Switch from the default z/OS Projects perspective to the J2EE perspective. Within Eclipse, there are several ways to change perspectives.

  1. From the Window pull down, select Open Perspective > Other, as shown in Figure 4.

Figure 4. Opening a perspective in Rational Developer for System z
command menu
  1. Scroll down and select J2EE from the Open Perspective dialog box, as shown in Figure 5:

Figure 5. Choosing the J2EE perspective
list of available perspectives
What is Java EE?

The Java Platform, Enterprise Edition (previously known as Java 2 Platform, Enterprise Edition, or J2EE) provides a standard for developing component-based, multi-tier, enterprise applications.

A Java EE application system typically includes the following tiers:

  • Client tier: In the client tier, Web components (such as servlets, JSP components, or standalone Java applications) provide a dynamic interface to the middle tier.
  • Middle tier: In the server tier, or middle tier, enterprise beans and Web services encapsulate reusable, distributable business logic for the application. These server-tier components are contained on a Java EE Application Server, which provides the platform for these components to perform actions and store data.
  • Enterprise data tier: In the data tier, the enterprise's data is stored and persisted, typically in a relational database.

Java EE applications are comprised of components, containers, and services. Web components, such as servlets and JSPs, provide dynamic responses to requests from a Web page. EJB components contain server-side business logic for enterprise applications. Web and EJB component containers host services that support Web and EJB modules.

  1. Press OK to switch to the J2EE Perspective.



Back to top


Import the IMS TM Resource Adapter

  1. Click File > Import to open the Import dialog box.

  2. Enter RAR, select RAR file, and then click Next to continue, as shown in Figure 6.

Figure 6. Importing a Connector RAR file
select RAR from tree view
  1. From the Connector Import dialog, click Browse to locate and import the IMS TM Resource Adapter file.

  2. Navigate to the file C:\Program Files\IBM\SDP70\ResourceAdapters\ims15\imsico1011.rar and click Open, as shown in Figure 7:

Figure 7. Importing the IMS TM Resource Adapter RAR file
explorer view
  1. Choose these options, as shown in Figure 8:
    1. Accept the default Connector module name of imsico1011.
    2. Using the drop down list, make sure that the Target runtime is WebSphere Application Server 6.1.
    3. Leave the Add the project to an EAR checkbox cleared.
    4. Click Finish to complete the import of the IMS TM Resource Adapter.

Figure 8. Importing the connector (the IMS TM Resource Adapter RAR file)
Connector Import dialog
What is a resource adapter?

Resource adapters allow your application to communicate with the enterprise information system (EIS). A resource adapter is a system-level software driver that is used by a Java application to connect to an EIS. The resource adapters reside on the application server and provide connectivity between the EIS, the application server, and the enterprise application. Applications deployed on the application server communicate with the resource adapter using the Common Client Interface (CCI). The RAR contains all the information necessary for installing, configuring, and running a resource adapter. Resource adapters comply with the J2EE Connector Architecture specification. In this lab, you are using IMS TM Resource Adapter to connect to IMS.

  1. The IMS TM Resource Adapter module should now be visible in your J2EE perspective, as shown in Figure 9:

Figure 9. IMS TM Resource Adapter Version 10.1.1 module in J2EE project explorer
red arrow points to module


Back to top



Go to the previous pagePage 2 of 8 Go to the next page