Is Replacement for com.ibm.mq.jms.MQQueueConnectionFactory is javax.jms.QueueConnectionFactory ?
posted 4 years ago
I am working in a legacy system that instantiates MQQueueConnectionFactory and sends message to a particular queue. I am looking for ways to replace using javax.jms packages ?
But I understand javax.jms.QueueConnectionFactory is an interface and cannot be instantiated. javax.jms.QueueConnectionFactory is an Application server administered object.
Can you please suggest me ways to replace the native API to javax.jms API.
You can create a Foreign JMS Provider within your app server to point to the MQ Object. Once the Foreign JMS Provider is created, you should be able to use the javax.jms API to consume/post messages to the Queue.