Connecting Tibco BusinessWorks to Weblogic JMS

08 Sep

In the last years I’ve been working with both the Tibco and Oracle (BEA) middleware software stack. In this period two of the products I’ve learned to appreciate are the Tibco BusinessWorks “zero-coding” service modeling concept and the formidable power of Oracle Weblogic’s clustering technique.

However a client wanted to use both products together, so here is the story in short.

First we configure the Oracle Weblogic server, domain, cluster, managed servers, JMSServer, JMSModule, etc. The Oracle Weblogic domain we will use has a admin and 2 managed servers (on the same host):

After that we need to configure the JMSServer components (for each managed server), create a JMSModule and add the ConnectionFactory, a Distributed Queue (if we are using Weblogic JMS let’s use one of it’s nicest features) and at last for each managed server a subDeployment, a member queue and a redirect error queue.

So we have our basic Weblogic JMS setup, let’s continue to the client side.
At first we copy the weblogic.jar file to the %TIBCO%\bw\5.x\lib folder as mentioned in the Tibco BW documentation.

We open our Tibco BusinessWorks Designer and create a new project. Then we add a JMS Connection and a JNDI Configuration to the project to configure the Weblogic JMS connection. (the last component is not really necessary, but I’ll explain why I use it in a few seconds).

So at first I tried to Test Connection without the JNDI configuration but this resulted in a endless waiting pop-up. So no success here. Then I included the JNDI configuration and with Test Configuration the following error showed up.

JNDI Configuration -> Test connection:
BW-JNDI-100002 Configuration Test Failed. Exception [java.lang.NoClassDefFoundError] occurred.
java.lang.NoClassDefFoundError: weblogic/security/service/PrivilegedActions

This error was familiar and has something to due with the fact that for WebLogic Server 10.0 and higher releases, client applications should use the wlfullclient.jar file to provide the WebLogic Server specific functionary previously provided in the weblogic.jar file.

So let’s generate the wlfullclient.jar with the JARbuilder tool as mentioned here on the Oracle website.
cd WL_HOME/server/lib
Use the following command to create wlfullclient.jar in the server/lib directory:
java -jar ../../../modules/com.bea.core.jarbuilder_X.X.X.X.jar

Copy the wlFullclient.jar to the %TIBCO%\bw\5.x\lib folder and make sure that the weblogic.jar is not there.
Restart your Tibco BusinessWorks designer. Test your JNDI Configuration and the JMS Configuration and the connection should be succesfull now.

Finally the Tibco Designer’s JMS palette is now at your disposal to build services using the Weblogic JMS server functionality as high-volume load-balancing and scaling.

1 Comment

Posted by on 08-09-2010 in BusinessWorks, Oracle, Tibco, Weblogic


Tags: , , ,

One response to “Connecting Tibco BusinessWorks to Weblogic JMS

  1. Rohan Suvarna

    04-04-2013 at 00:10

    Thanx… that was a really helpful tip


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: