Posted: Mon Nov 03, 2008 11:11 am Post subject: How to get QCF/JMS Destination information within MDB
Apprentice
Joined: 07 Feb 2005 Posts: 28 Location: USA
Hi,
I need to deploy multiple instances of same MDB to listen to 4 queues.
Could somebody please tell me how to configure the ejb-jar.xml and weblogic-ejb-jar.xml to achieve this?
I am also trying to retrieve the name of the Connection Factory and JMS Destination within each MDB for accounting for information like how many messages are received by the MDB on a particular queue per seccond.
Is there any way to obtain this information in case of an MDB?
I am using MQ as Foreign JMS Provide on Weblogic Application Server v9.2
Thanks a lot for providing the sample configuration in the reply..
Could you please also point to the way to access the name of QCF and Destination from within MDB code?
This is required in order to update the stats for corresponding queues.
Thanks a lot in advance!
See if you can cast the QCF to an MQQueueConnectionFactory and retrieve the info you need that way.
As for the queue names check the message.getJMSDestination() function.
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