Connecting TIBCO BW with ActiveMQ

Usually, when we work with the TIBCO technology and with TIBCO BW in particular we are going to do a huge use of the JMS technology and to accomplish these tasks we usually use the TIBCO EMS as a JMS provider, because it is included in the default TIBCO BW installation. But in some organization they already have an JMS broker that are being using in some parts you have to integrate, because some of the particular features of their business and you have to get along with it.

In this post I’m going to show you how you can connect your TIBCO BW process with one of the best free and open source JMS providers, such as Apache ActiveMQ. We are going to use the current version (current, in the time we are posting this), 5.7.0.  So the first  step you have to accomplish is to download the software.  Download the software. 

To get started to ActiveMQ is so easy, you only have to execute the activemq.bat you find in the bin/ folder, as so many apps, but if you want to learn a little bit in this great broker, you can give a chance to the ActiveMQ in Action book.

Ok, when we finished to install the software, we are going to do a little process only to verify the connections. The BW project will be very simple. Only two processes, one it’s a queue receiver and the other is a queue sender, that’s all. But the main problem is to configure the ActiveMQ connection.

The configuration must the following, as you can see in this snapshot:


And you have to add the following JAR libs into the TIBCO BW classpath: activemq-core-5.7.0.jar and geronimo-j2ee-management_1.1_spec-1.0.1.jar. With these steps you have accomplish all the needed steps to get your process working correctly with your ActiveMQ broker.

Download the sample process so you can take a deeper look.

I hope you can use these information in your new developments! See you in the next post!


11 thoughts on “Connecting TIBCO BW with ActiveMQ

  1. Hi

    Where to set classpath? now in 5.9 version there is no core library jar but all jar available in mavan site.
    I am confused with BW and designer classpath. I try to copy 5.9-all.jar ad other specified jar in the tpcl folder’s lib folder, but no results

  2. I have Downloaded your sample and when I test run the program in Tibco Designer, the test run goes on forever when the activemq.bat is running and shows a connection refused:connect when the bat is not running .
    can you put some light on it.

  3. I have copied the JAR libs into the TIBCO BW classpath: activemq-core-5.7.0.jar and geronimo-j2ee-management_1.1_spec-1.0.1.jar.

    Both designer.tra, bw.tra


    Still facing error “Cannot instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory”

  4. Hi, Thank you for detailed post. When I am using ActiveMQ 5.6.0 version with simpleAuthenticationPlugin & authorizationPlugin Plug-ins. I am getting error in BW as Connection not successful and ActiveMQ Server logs shows  WARN | Failed to add Connection ID:, reason: java.lang.SecurityException: User name [null] or password is invalid.. Kindly share your thoughts.

    • For the log entry you are sharing with us, it seems that the problem could be related to the way BW are authenticating to the ActiveMQ service. Could you share with us the BW JMS Connection configuration?

      Thank you very much for your comment.

  5. hi , thanks for the post. thr is a situation where I want to post a message over a active MQ queue but the producer of message will send the message over http, can we do that in active MQ ?

  6. Do you know if JMS request/reply ist working out of the box with ActiveMQ unsing the JMS Queue Requestor activity? Or does it rely on EMS?

    • Hi Alex,

      First of all, I’m going to make the test of the functionality you are talking about with a sample project ASAP so you can download it, yo get it working. But, as you might know the Request-Reply is a functionality of the JMS standart since its initial versions, so any JMS provider such as ActiveMQ or TIBCO EMS must implement it.

      In fact, when you do a request-reply, you are doing the following actions:
      1.- You are sending a JMS message specifying a correlation-id in the JMS header: JMSCorrelationID.
      2.- You are also specifiying a temporal destination to get the response message at the JMS header: JMSReplyTo.
      3.- You listen to you responso.

      So, answering to your questions, yes you can use ActiveMQ out-of-the-box to do request-reply without needed EMS.

      Thank you for your comment and hope the answer fits you.

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