This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is Replacement for com.ibm.mq.jms.MQQueueConnectionFactory is javax.jms.QueueConnectionFactory ?

 
Rajesh So
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.

Regards,
Rajesh
 
Santhosh ayiappan
Ranch Hand
Posts: 80
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rajesh So
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Santhosh
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic