You can do this in two ways.
1). An external command palate.
2). JAVA code activity.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1). Using an external command activity you can issue a command to
show the details of the JMS Queue with the help of an EMS command/script.
You can execute the commands using an external command.
Usage: Provide the path of a batch file into an external command.
--------
Make a batch file containing the following:
cd C:\tibco\ems\7.0\bin
tibemsadmin.exe -server tcp://localhost:7222 -user admin -password password -script C:\cmds.script
Create a shell script file containing: show queue MyQueue;
- - - - - - - - -- -- -- - - - - - - - - -- - - --- -- - -- - - - -- - -
2). Using Java code activity you can implement the EMS Admin
API. In the Admin API there is a package named
'com.tibco.tibjms.admin' containing the class
'QueueInfo'
which has a method
'getReceiverCount()'
whose function is: "Get the number of active receivers on this queue."
--- - - - - -- -- - --- -- -- - - -- --- -- - - - -- - - - - -- - - - - -