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 » <mqps>.<Top>

Post new topic  Reply to topic
 <mqps>.<Top> « View previous topic :: View next topic » 
Author Message
scravr
PostPosted: Fri Nov 04, 2011 9:57 am    Post subject: <mqps>.<Top> Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

Using JMS on MQ7:
Does anyone know how to get the <mqps>.<Top> value from msg.delegateMsg.providerMessage.rfh2FolderParser.folder on TextMessage format.

...
...
...
topicSession = topicConn.createTopicSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE);
topicConn.start();
topic = (Topic)topicSession.createTopic("my-topic-string");
TopicSubscriber topicsub = topicSession.createSubscriber(topic);
while (more-msgs).....
{
Message msg = topicsub.receiveNoWait();
msgCounter++;
String mqPubTopic = .... get it from <mqps>.<Top> ?????
...
...
}
Back to top
View user's profile Send private message Send e-mail MSN Messenger
fjb_saper
PostPosted: Fri Nov 04, 2011 11:47 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Have you tried going for the properties?
In MQ V7 you do not necessarily have an RFH or RFH2 for the properties.

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
scravr
PostPosted: Fri Nov 04, 2011 12:44 pm    Post subject: Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

This is a generic JMS subscriber to some string. like "abcd/sometext/#"
How can I get the mq published topic string of a msg?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
fjb_saper
PostPosted: Fri Nov 04, 2011 1:03 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

scravr wrote:
This is a generic JMS subscriber to some string. like "abcd/sometext/#"
How can I get the mq published topic string of a msg?

Have you looked at the Destination on the message?

Do yourself a favor and extract the list of properties on the message and run through them printing name and value.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » <mqps>.<Top>
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.