Using Oracle BPEL Process Manager with Oracle Service Bus – Part 1

Using Oracle BPEL Process Manager with Oracle Service Bus – Part 1

Caliing BPEL processes from OSB

  1. Synchronus and
  2. Asynchronus

With OSB 10.3 ( BEA Aqualogic Service Bus ) you can call BPEL services with the ormi or opmn protocol ( just like OESB ). With version 10.3, OSB support the bpel 10.1.3.4 transport. In this postI will show you how to call the BPEL services from OSB. Calling OSB services from BPEL is also possible but I’ll explain this in an other blog entry. I got this working with the MLR5 patch for Soa suite 10.1.3.4.
First we have to do some hacking else we can get this error com.evermind.server.rmi.RMIConnectionException: Disconnected: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID
First we have to add a java parameter to the OSB server. Go to domainsosb_domainbin folder and edit the setDomainEnv file and add this line to this file. set JAVA_PROPERTIES=-Dplatform.home=%WL_HOME% -Dwls.home=%WLS_HOME% -Dweblogic.home=%WLS_HOME% -Dcom.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0
Step 2 is to replace the bpel jars in the bpel transport ear. Go folder osb_10.3libtransports and open bpel10gtransport.ear and replace the following jar files orabpel.jar, orabpel-common.jar , xmlparserv2.jar and oc4jclient.jar with the ones you can find in the soa suite 10.1.3 home.

Now we are ready to call a Synchronous BPEL service from OSB. Here is a overview picture how it works for a Synchronous Service

First we create a proxy service in the OSB where we use the WDSL of the BPEL service.

Create message flow where we call the Business service which uses the BPEL transport.

Create the OSB Business service where we use the input operation of the BPEL wsdl. OSB detects that this is a BPEL wsdl

Select the bpel-10g transport. As endpoint we can choose between opmn or ormi. For ormi we can use this url ormi://localhost:12401/default/BPELProcess_Sync Where 12401 is the rmi port of the OC4J container and BPELProcess_Sync is the name of the BPEL service. Don’t use orabpel in the url. You can also use opmn://localhost:6003/home/default/BPELProcess_Sync where 6003 is the opmn port and home is the name of the OC4J container.

Because this is the wsdl of a Synchronous BPEL proces we have to choose Synchronous client and select a service account ( this contains the oc4jadmin username / password )

That’s all for a Synchronous BPEL service.

For an Asynchronous BPEL we have to do a little more. See this overview picture.

Import the wsdl of the Asynchronous BPEL process and use this in a new Proxy Service.

Do the same for a new Business service, this business service is called from the message flow of the just created proxy service.

Select as protocol bpel-10g and use as endpoint opmn://localhost:6003/home/default/BPELProcess_Async.

Now we have to select Asynchronous Client and as callback proxy we have to select a return proxy service and select a service account ( this contains the oc4jadmin username / password )

Now we create a call back proxy service where we select the callback operation of the BPEL service.

Now we have to select SB as protocol

this proxy service calls a business service with the same BPEL wsdl callback operation.

I store the result of the BPEL service in JMS queue

that’s all for the Asynchronous BPEL service. For more information see the OSB bpel transport page.

I found this useful post at edwin’s blog and then decided to save it to my blog for future reference.

6 Responses so far.

  1. My coder is trying to persuade me to move to .
    net from PHP. I have always disliked the idea because of
    the costs. But he’s tryiong none the less. I’ve been using WordPress on a variety of websites for
    about a year and am nervous about switching to another platform.

    I have heard good things about blogengine.net. Is there
    a way I can import all my wordpress posts into it?

    Any kind of help would be greatly appreciated!

  2. spain and portugal tours says:

    You made some respectable points there. I appeared on the

    internet for the difficulty and located most people will

    go together with along with your website.

  3. englishkidsfun.blogspot.com.au says:

    Interesting blog! Is your theme custom made or did you download it from somewhere?
    A design like yours with a few simple adjustements would really
    make my blog jump out. Please let me know where you got your theme.
    Thanks a lot

  4. Dalila says:

    Hello, I have a question, if the Oracle BPEL Process Manager and JDeveloper, allow me to do the same that in Oracle Service Bus (OSB), related to orchestration, transformation, service calls, etc., then what would be the real difference OSB, ie that I would have an ESB if the BPEL Process Manager and JDeveloper would perform the same.
    Thanks in advance, awaiting your response Dalila.

  5. […] Using Oracle BPEL Process Manager with Oracle Service Bus – Part 1 September 2010 […]