Tibco EMS

Connecting with Tibco EMS – Mulesoft / Mule ESB Tutorial

In this Mulesoft / Mule ESB tutorial we will connect with Tibco EMS server Queue and send messages across:

Mule JMS Connector

Inbound – Mule JMS will receive the message and be used with an inbound endpoint.
Outbound – Mule JMS will send the message and be used with an outbound endpoint.

<jms:outbound-endpoint queue="my.queue"/>;

<jms:inbound-endpoint topic="my.topic"/>;

Below are the steps:

1. Connect to Tibco EMS Server

Make sure that you know the EMS Url, username and password and are able to connect to Tibco EMS server that you want your mule application to connect with.

Here we are using our local EMS server to connect, and queue “testq”.

EMS Admin Tool

2. Importing EMS lib into Mule:

We need to import EMS java library into mule project to help connect the EMS server. If you are using a local EMS server to connect with, then you don’t need to download any of the libraries as you can find them in EMS installed location on your system (Go to: [ems installed folder]/[version]/lib).

Files Needed:

  1. jms-2.0.jar
  2. tibjms.jar
  3. tibjmsadmin.jar

Jars required to connect to EMS server

3. Creating the flow:

In this Mule example we will read the content from a file and post that content to a JMS queue “testq”.

Mule Process Design

4. Configure Mule File Connector:

Configure input directory and output directory.

File Connector Configuration


5. Configure Mule JMS Connector:

Specify the queue name and click to add Connector Configuration

Select “JMS” and click “OK”

Specify User Name and Password in the General Tab

In advanced tab, Initial Factory will always be same “com.tibco.tibjms.naming.TibjmsInitialContextFactory”, specify Provider URL and Connection Factory as per your EMS server.

6. Run the Mule Application

If connections details provided are correct then the mule application will read the file in the input folder and JMS will send the message to “testq” queue.

Message received on testq

Here’s how the mule code will look like in configuration XML

[xhtml] <jms:connector name=”TibJMS” validateConnections=”true” jndiProviderUrl=”tcp://localhost:7222″ jndiInitialFactory=”com.tibco.tibjms.naming.TibjmsInitialContextFactory” doc:name=”JMS” connectionFactoryJndiName=”QueueConnectionFactory” persistentDelivery=”true” username=”admin” password=”admin”/>;
<flow name=”readfileFlow”>;
<file:inbound-endpoint responseTimeout=”10000″ doc:name=”File” moveToDirectory=”src/main/resources/output” path=”src/main/resources/input”>;
<jms:outbound-endpoint queue=”testq” connector-ref=”TibJMS” doc:name=”JMS”>;
<jms:transaction action=”NONE”/>;

About Varun Goel

Varun Goel is a technology enthusiast with 6+ years exp in IT industry. In fact, he is been developing application after schooling as freelancer. Currently working with one of the Fortune’s 100 Companies having vast experience Mule ESB, Tibco, HTML5, CSS, JSS, Android, Core Java, JSP, PHP, MySQL, AutoCAD, Maya, ZBrush, Photoshop, Flash CS and many more.


  1. Brus Fup

    As a rule, having asked a question of installation of a ladder in the house, owners don’t assume that the ladder and its protection are two absolutely different products. Well, if the same company, like us, is engaged in the arrangement of turnkey facilities and can offer to make a ladder and metal fences on it in one set, but in practice it is rare. Therefore, before any owner of the stairs in the house the question arises: how to make it safe, we guarantee the best conditions for cooperation thanks to our own production, high potential design office and focus on long-term mutually beneficial partnership. Here you can buy not only standard fencing for stairs, but also design, made to order and is amazingly cheap. New construction technologies, developing rapidly, allow to use light, modern, reliable and weightless structures. Stair railings made of stainless steel are such that the price thereof is acceptable. Railings made of reliable material: an important structural element, part of the design of the building, the guarantors of safety and easy descent and ascent the stairs. Protections for ladders which are offered by our company differ in reliability, resistance to various aggressive influences and faultless appearance. In addition, their manufacture takes into account all kinds of standards and requirements relevant to this group of products. It is difficult to imagine a building in which there will be no stair railings, the presence of which increases the convenience, safety when moving. Note that today for the manufacture of construction offers a large selection of elements with which it is possible to quickly perform the installation of the structure, which for many years will last without losing the original qualities. Manufacturing and installation of stainless steel stairs is inexpensive compared to designs from other materials with equal quality characteristics. However, stainless steel is much more popular material-it is easy to handle, combine with other materials, install and care for the finished product

  2. Prasannachakravarthi

    In any ESB we must need an dedicated JMS services to connect & use.
    TIBCO is having EMS which Java implementation of JMS.
    I understand Mulesoft will be able to establish the connectivity with MQ, TIBCO EMS etc.,
    But just want to know whether Mule soft is having any feature to setup JMS services ?
    If yes then any idea how it’s works ? Is it same like TIBCO EMS services ?
    all the Queue / Topic properties supported ?

Leave a Reply

Your email address will not be published.