Pages

Thursday, December 1, 2011

Oracle SOA Suite - Using the EJB Adapter to invoke the EJB's deployed in weblogic server

Oracle SOA Suite - Using the EJB Adapter to invoke the EJB's deployed in weblogic server:

We can use the EJB Adapter to expose the EJB remote interface as a service or to invoke the EJB as a reference.

This blog will explain how to use the EJB Adapter to invoke the EJB deployed in the weblogic server as a reference.

I have created a sample EJB (EmployeeDetailsSessionBean), which will be invoked from Composite, to return the employee details.

Refer the sample attached.

Steps:


  • Create a jar file e.g. RemoteInterface.jar including EJB Remote class and the Bean classes.

  • Create a SOA Composite with BPEL and add the EJB Service to the reference section.


  • Select the Interface as java and provide the JAVA Interface as the remote class name of the EJB with the package qualifier and also provide the JNDI look name of the EJB; select the Jar File created in the step1.
  • Click “OK”; this will generate the WSDL definition with input/output definitions.


  • Select the EJB Adapter and add the java.naming.provider.url binding property, if the EJB is not deployed in the same server as the Composite.

  • Go to the source mode of the Composite.xml and make sure the JNDI name of the EJB is configured properly.

  • Deploy the component and test.


DOWNLOAD SAMPLE






1 comment:

  1. can anyone please provide me the unittesting approch from jdeveloper with screenshots

    ReplyDelete