Goal

To package your task as a J2EE Session EJB, which will provide users with access to a CICS transaction through a Java 2 Enterprise Edition (J2EE)-compliant application server. Alternatively, you can access your tasks by connecting directly to the J2EE resource adapter that gets packaged with a J2EE Session EJB in MCS.

Method

Once you've published your project to MCS, you can package it as a J2EE Session EJB, and then deploy it to a supported application server. Attachmate Synapta Services Builder supports the following J2EE-compliant application servers: BEA WebLogic 8.1, IBM WebSphere 5.0, Oracle 9i AS, and Sun's SunOne AS7. Then you can either open the EJB in your IDE and integrate the task inputs and outputs with your application, or you can directly call the Record objects returned by the J2EE resource adapter.

Before You Start

This How-To assumes that you have created and published a Synapta Services Builder for CICS task (or set of tasks). We recommend first using the How to Create a Task documentation. Also, you must have configured your run-time environment. We recommend first using the How to Configure your Run-time Environment documentation. Also, you must have installed one of the supported J2EE-compliant application servers.

Steps

Following are the main steps you need to complete for this How-To. You must do step 4 or 5, but not both.

  1. Register an application server.

  2. Package a task as a J2EE Session EJB.

  3. Deploy your J2EE Session EJB to the selected application server.

  4. Integrate your J2EE Session EJB with an application.

    -Or-

  5. Access data directly through the J2EE resource adapter.

  Attachmate