Posted: Wed May 26, 2004 2:38 pm Post subject: MQ 5.3 WSAD 5.01 JMS Dynamic Queue Prefix
Newbie
Joined: 26 May 2004 Posts: 2
Is there anyway to change the dynamic queue prefix from AMQ.* to something else when creating dynamic queues?
I am using jndi to retireve my WebSphere MQ JMS Conn factory and then I'm using the session object to create a temporary queue. But this queue name always atarrts with AMQ.*.
Thanks,
Mike
ctx = new InitialContext(env);
// lookup the queue connection factory
Object o = ctx.lookup(QCF_FACTORY);
qcf = (QueueConnectionFactory)o;
// create a queue connection
qconn = qcf.createQueueConnection();
// create a queue session
qsess = qconn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
// create a temporary queue to receive
tempQueue = qsess.createTemporaryQueue();
TEMPQPREFIX
-----------
The prefix to use when creating temporary/dynamic queues. If
not specified defaults will be used Default AMQ.* (CSQ.* for
390). The prefix follows the same rules as WebSphere MQ queue
names and must have an asterisk at the end of the prefix to
enable the dynamic part of the name to be generated. The length
of the prefix is 33 characters or less including the asterik.
interestingly enough, I did not see that parameter in the WAS 5.1 Admin Console.
You must have to edit the resources.xml file to take advantage of it or the setTempQPrefix() and getTempQPrefix() methods
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum