how do i get QueueConnectionFactory in JMS without using JNDI.
Is there any way we get it without using MQ specific com.ibm.mq.jms.MQQueueConnectionFactory.
The QueueConnection Factory is one of the administered objects. You either need to register this object in JNDI or write a wrrapper around MQ which will return a connection to MQSeries. This wrapper uses MQ classes to get a connection.
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
Import the package com.ibm.mq.jms.*;
Create an instance of an MQQueueConnectionFactory object. It is sub class of javax.jms.QueueConnectionFactory and hence can be used anywhere that can. See the Using Java manual for the reference on this class and not the methods marked with a "*". They are NOT JMS but allow you to set the "administered object properties" from within your app. Great for testing.
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