Configuring CICS TG inbound resource adapter on JBOSS

With CICS TG inbound resource adapter (cicsinbound.rar), a TXSeries application can invoke a method in an EJB application deployed on JBOSS within same logical unit of work. Here TXSeries acts as transaction co-ordinator and JBOSS as transaction participant.

  1. From JBOSS Management Console, click on Deployments, click iconto upload deployment and choose cicsinbound.rar.
    Deployments
  2. Click Next and Finish to complete deployment.
  3. Configure Resource Adapter, from Configuration > Subsystems >Resource Adapters
    1. Add Resource Adapter, give Archive as cicsinbound.rar and Name as CTGInboundAdapter as displayed here: In this screen, add Resource Adapter, give Archive as cicsinbound.rar and Name as CTGInboundAdapter.
  4. Deploy your JEE application that has a method to read Commarea sent by TXSeries similar to one given here:
    public void execute(InputStream input, OutputStream output) {
    customerRecord = new CustomerRecord();
    try {
    customerRecord.read(input);
    System.out.println("Name :"+ customerRecord.getCustomerName());
    System.out.println("BillAmount :" + customerRecord.getBillAmount());
    } catch (IOException e1) {
    e1.printStackTrace();
    }
    }
  5. For TXSeries side configuration, to invoke the EJB application deployed on JBOSS see at:Configuring a TXSeries region to communicate with the CICS JEE inbound resource adapter.
  6. Execute transaction on TXSeries.