Developing Java Applications That Run Outside of IMS


The following sections briefly describe using Java application programs to access IMS databases from products other than IMS.

Related Reading: For the details of the requirements for running Java applications from these products, see IMS Version 9: IMS Java Guide and Reference.

WebSphere Application Server for z/OS Applications

You can write applications that run on WebSphere Application Server for z/OS and access IMS databases when WebSphere Application Server for z/OS and IMS are on the same LPAR (logical partition).

To deploy an application on WebSphere Application Server for z/OS, you must install the IMS JDBC resource adaptor (the IMS Java class libraries) on WebSphere Application Server for z/OS, and configure both IMS open database access (ODBA) and the database resource adapter (DRA).

Figure 18-4 shows an Enterprise JavaBean (EJB) that is accessing IMS data. JDBC or IMS Java hierarchical interface calls are passed to the IMS Java layer, which converts the calls to DL/I calls. The IMS Java layer passes these calls to ODBA, which uses the DRA to access the DL/I region in IMS.

Figure 18-4. WebSphere Application Server for z/OS EJB Using the IMS Java Function


Remote Data Access with WebSphere Application Server Applications

With the IMS Java function remote database services, you can develop and deploy applications that run on non-z/OS platforms and access IMS databases remotely. Unlike other Java solutions for IMS, you do not need to develop a z/OS application or access a legacy z/OS application to have access to IMS data. Therefore, the IMS Java function is an ideal solution for developing IMS applications in a WebSphere environment.

Figure 18-5 shows the components that are required for an enterprise application (in this case, an EJB) on a non-z/OS platform to access IMS DB.

Figure 18-5. The IMS Java Function and WebSphere Application Server Components


DB2 UDB for z/OS Stored Procedures

You can write DB2 UDB for z/OS Java stored procedures that access IMS databases.

To deploy a Java stored procedure on DB2 UDB for z/OS, you must configure IMS Java, ODBA, and DRA.

Figure 18-6 shows a DB2 UDB for z/OS stored procedure using IMS Java, ODBA, and DRA to access IMS databases.

Figure 18-6. DB2 UDB for Z/OS Stored Procedure Using IMS Java


CICS Applications

Java applications that run on CICS Transaction Server for z/OS can access IMS databases by using IMS Java.

Java applications use the IMS Java class libraries to access IMS. Other than the IMS Java layer, access to IMS from a Java application is the same as for a non-Java application.

Figure 18-7 on page 321 shows a JCICS application accessing an IMS database using ODBA and IMS Java.

Figure 18-7. CICS Application Using IMS Java


Related Reading: For information about configuring CICS for the IMS Java function and for information about developing a Java application that runs on CICS and accesses IMS databases, see IMS Version 9: IMS Java Guide and Reference.



Introduction to IMS. Your Complete Guide to IBM's Information Management System
An Introduction to IMS: Your Complete Guide to IBMs Information Management System
ISBN: 0131856715
EAN: 2147483647
Year: 2003
Pages: 226

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net