IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Access Enterprise JavaBeans (EJB) services > Create EJB imports

Create EJB imports using the external service wizard

You can use the external service wizard in IBM Integration Designer to build an EJB import service. The external service wizard is a tool used to create services based on criteria that you provide. It then generates business objects, interfaces, and import files based on the services discovered. The EJB import is created based on an existing EJB implementation and the newly created import can then be deployed to IBM BPM or WebSphere Enterprise Service Bus.

Before beginning, copy the necessary JAR file or classes to the module, library or any other project to ensure that they are available in the workspace.

To build an EJB import service using the external service wizard, follow these steps:


Procedure

  1. Launch the external service wizard in IBM Integration Designer by clicking File > New > External Service.

  2. From the external service wizard window, select JavaEnterprise JavaBeans Binding and click Next. If that you can also launch this wizard by selecting a module in the business integration (BI) view and right-clicking and selecting New > External Service > Java > Enterprise JavaBeans Binding.

  3. The New Enterprise JavaBeans Binding Service window opens. For EJB imports, select the Outbound processing option for the direction of binding processing to be used at run time. After you have made the selection, click Next.

  4. Select the module where the generated artifacts should be saved. You can select an existing module from the drop-down list, or create a new one by clicking New. You can also indicate the folder to be used. After you have made the selection, click Next.

  5. Select an available interface from the list. This will create a reference to an enterprise bean that is accessed through its local or remote interface. If that the dependent JAR files have to exist in the workspace as a Java 2 Platform Enterprise Edition utility. You can further filter the list of available interfaces using the All, Remote, or Local options from the drop-down list.
  6. Provide the JNDI name (if it was not automatically discovered) and click Next or click Finish to create the EJB import service.

  7. If the creation of the EJB import service failed, you will receive an error message stating Failed to generate interfaces and business objects. Check the log file.. Review the workspace error .log file located in %WORKSPACE%\.metadata folder for details regarding the failure and how to fix it.


What to do next

An EJB import is created and shown in an assembly diagram in the assembly editor. You can select the EJB import and change the properties as required from the Properties tab.

Create EJB imports


Related concepts:
JNDI names


Related reference:
EJB 3.0 and EJB 2.1
JAXB and EJBs