ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Message Listener for MQ Java API

Post new topic  Reply to topic
 Message Listener for MQ Java API « View previous topic :: View next topic » 
Author Message
MQnewbie
PostPosted: Tue Feb 12, 2002 2:18 am    Post subject: Reply with quote

Newbie

Joined: 11 Feb 2002
Posts: 2

How can i implement message listeners(clients) using pure MQ Java API.
I have non-JMS MQ queue and want to have class as listener
to this queue with selector functionality.
I know how to do it for JMS Queue.
Can somebody help me out to implement this.
Back to top
View user's profile Send private message
deepak
PostPosted: Wed Feb 20, 2002 11:33 am    Post subject: Reply with quote

Newbie

Joined: 19 Feb 2002
Posts: 2


Use something like this,
assumptions -> You have already created a QueueConnection object and got a QueueSession object from it.
variables ->
QueueSession qsession;
QueueConnectionFactory qcf;
qname - the queue name from which you receive messages
targetClient is the property that specifies if the MQServer is JMS or Non JMSCompilant. Value of 1 means non jms and 0 is jms compilant.

qsession.createQueue("queue://" + qcf.getQueueManager()
+ "/" + qname + "?targetClient=" + 1);

Hope this helps.

Deepak
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Message Listener for MQ Java API
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.