Queue Management

As mentioned earlier, a queue has to be initially set up on the messaging server by an administrator before it can be used for any coding. The first step is to create a queue connection factory and the queues that we will use while developing our JMS code samples. Detailed instructions on administered object configuration can be found in Appendix A.

Start up the FioranoMQ messaging server by invoking the server startup script runkrn1. bat. This script is usually found in the %FMP_DIR%\shell\ directory. Then, invoke the Fiorano admin console by executing the runAdmin.bat batch file. It is usually found in the %FMP_DIR%\AdminTool directory in Fiorano MQ 4.6 and in the %FMP_DIR%\shell\ directory in Fiorano MQ 5.0. The screenshot below shows the login screen of the Fiorano administrator console. Log on as the administrator by typing in the appropriate password. In my case the password is "passwd":

click to expand

Important 

The Fiorano MQ server administrator console is case-insensitive. It ignores case for user names, passwords, destinations, and connection factory names. Please be aware of this when administering and using the FioranoMQ administrator console.

First, we need to set up a queue connection factory called bank:qcf. Below is a screenshot showing the FioranoMQ's administrative console, where the bank:qcf object is installed by using the Create button. The Queue CFs tab shows the connection factories currently administered by the server. This object can now be accessed by our messaging client applications through JNDI:

click to expand

In the same manner, we need a couple of queue objects called bank:accounts and bank:clearing_house. The screen below shows Fiorano's Queues tab, showing the queues bank:accounts and bank:clearing_house installed. Any messaging client can now access these queues through JNDI lookup:

click to expand

Now we create a couple of users called athul and gopalan, with password raj. Below we see the Users tab, showing the new users in place:

click to expand



Professional JMS
Professional JMS
ISBN: 1861004931
EAN: 2147483647
Year: 2000
Pages: 154

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net