IBM BPM, V8.0.1, All platforms > Migrating and upgrading your IBM BPM environment > Migrating from other products > Migrating from WebSphere Studio Application Developer Integration Edition > Additional migration information > Create SCA Components and SCA Imports for the services in the application for rewiring > Migrating a J2C-IMS service

Create a web service around the J2C service: option 2

You can create a J2C web service and if the consumer of the service is an SCA component, consume the service as an IBM Web Service (SOAP/HTTP or SOAP/JMS).

To create a web service around the J2C service, follow these steps:

  1. Create the J2C JavaBeans by clicking File > New > J2C > J2C Java Bean

  2. Choose the 1.5 version of the IMS Connector for Java and click Next.

  3. Select Managed Connection and enter the JNDI lookup name. Click Next.

  4. Specify the project, package, and name for the new JavaBeans.

    The bean consists of an interface and an implementation class. Click Next.

  5. Add a Java method for each function or service you want to access from the EIS. Additional methods can be added later in the Java source editor through the Snippets View. When you click the Add… button, choose the name for the method and click Next.

  6. Choose Browse… to reuse existing types or New… to launch the CICS/IMS Java Data Binding Wizard (where you can refer to a COBOL or C source file) for the input and output data types.

  7. Once you have finished creating Java methods, Click Next.

  8. Complete the remaining steps in this wizard to create your J2C JavaBeans.

  9. Create the web service by clicking File > New > J2C > Web Page, Web Service, or EJB from J2C Java Bean to create the web service around your J2C JavaBeans.

  10. Complete the wizard.
The consumers of this service can now use the WSDL service that is generated by this wizard to invoke the IMS service.

: Migrating a J2C-IMS service