In TIBCO EMS based implementation, there are two types of queues that can be used. Static queues which are created either by using EMS administration tool or by editing queues configuration file (queues.conf) and dynamic queues which are created at run-time (on the fly) by the application.
In this tutorial, I will briefly talk about the two types of EMS queues and about usage of dynamic queues.
How to create static destination queues in TIBCO EMS:
First, let’s talk about static EMS queues. Static queues can be created using create queue command in TIBCO EMS administration tool. To create the queues in windows environment, go to Start–>TIBCO–>TIBCO EMS <version>–>Start EMS Administration Tool
Administration tool will open like below:
Make sure that your EMS Server is started. In order to connect to the EMS Server, use connect command in the administration tool and then give your ems username and password as shown in below screenshot:
Once you are connected to EMS Server, you can create a new queue (say queue.ajmal) using following command:
create queue queue.ajmal
Now if you use show queue command, you can see that our queue is created and available as shown in the below screenshot:
Creating Static EMS queues by editing queues.conf configuration file:
Using above method, you created EMS queues through administration tool. You can also create queues by editing queues.conf file (file is in tibco/ems/<version>/ folder of your tibco installation).
Just open the file and add the name of the queue that you wish to create. Queue will be added to available pool of queues and you can use that.
How to create dynamic queues in TIBCO EMS?
As explained earlier, dynamic queues are created on the fly and these are non-persistent queues. Dynamic queues can be created once you have a queue with the name “>” available in your queues configuration file. If you are facing issue like “Not allowed to create destination queue“, then make sure that you have angle bracket (>) available in your queues configuration file. Otherwise add the same either by directly adding it to the queues.conf file or by below command in EMS administration tool:
create queue >
Once you have above configuration available, you can create a dynamic destination queue by giving your queue name in the destination queue input element of JMS Queue Sender activity in any TIBCO BW process.