MQSeries with Weblogic
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abhishek_Goyal
Posted On:   Friday, June 22, 2001 04:02 AM

We are going to use MQSeries JMS with Weblogic app server. I would like to know, how can we use MQSeries JMS support without using the vendor specific APIs. i.e. usage of only Javax.jms.* permitted. Is there a way by which I can register my MQ objects with the JNDI factory of Weblogic.

Regards
Abhishek

Re: MQSeries with Weblogic

Posted By:   sivaram_ponraj  
Posted On:   Monday, June 25, 2001 02:34 AM

Dear Goyal
yes u can bind the mqSeries com.ibm.mq.jms.MQXAQueueConnectionFactory and MqSeries Queue in the jndi and if u lookup from any java code u can directly access the MQSeries.U can refer the following code for binding

factory = new MQXAQueueConnectionFactory();
(factory).setQueueManager(QMGR);
// factory.setTransportType(1);

connection = factory.createXAQueueConnection();

connection.start();

boolean transacted = false;
//session = connection.createXAQueueSession(true,Session.AUTO_ACKNOWLEDGE);
session = connection.createXAQueueSession();

QueueSession s = session.getQueueSession();
ctx.bind("BindedQueueConnectionFactory",factory);
ctx.bind("BindedQueue",ioQueue);
About | Sitemap | Contact