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 » JMS mq client connected via CCDT - how to know qmgr name

Post new topic  Reply to topic Goto page Previous  1, 2
 JMS mq client connected via CCDT - how to know qmgr name « View previous topic :: View next topic » 
Author Message
Michael Dag
PostPosted: Wed Dec 25, 2013 4:20 am    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2602
Location: The Netherlands (Amsterdam)

fjb_saper wrote:

You might have to look at the JMS_IBM property...

I don't think these are available in a pure JMS (non-IBM supplied) library
_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
fjb_saper
PostPosted: Thu Dec 26, 2013 7:48 am    Post subject: Reply with quote

Grand High Poobah

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

sebastia wrote:
... mmm ... targetClient ... an interesting property ...

How do I set it ?
Is it a message property ?
Looks like "connection" property ...

Family time today ... more on friday

Best wishes for all the good people around !

Sebastian.

targetClient is a Destination property.

Send your message to a local queue:
Code:

Queue myqueue = sess.createQueue("queue:///MYLOCALQUEUE?targetClient=1");
producer = sess.createSender(myqueue);
msg.setJMSreplyto (myqueue);
producer.send(msg);

Read back your message (using a queue receiver) and check the content of reply to destination... It should now have a qmgr in it...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
sebastia
PostPosted: Sat Dec 28, 2013 1:47 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

Writing into a local and the reading the same queue to get a local queue manager name seems to me ...

1) factible, possible
2) slow

... but if there is no JMS method or attribute ... shall be good enough.

Happy 2014 !
Back to top
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Sat Dec 28, 2013 7:36 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

JMS does things to ensure that replytoqmgr is set to the name of the local qmgr when you send a request message.

This is why, when you are using MQ clusters, you have to take steps to administratively configure the destinations used to send requests to blank out the replytoqmgr, or use a cluster qmgr alias that blanks it out for you.
Back to top
View user's profile Send private message
sebastia
PostPosted: Sat Dec 28, 2013 7:59 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

Hi, MQ Jeff - it is wonderful (ibm) JMS does as many things for you ... but .. do we know all of them ? Are we aware of all that happens ?

I mean : are all those "hidden" operations ... are they listed somewhere ?

Otherwise ... their meaning would be lost in the wind ... IMHO

Sebastian, in favour of "open source" concept.
Back to top
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Sun Dec 29, 2013 8:28 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

There used to be a page in the info center about mapping from JMS headers to MQ headers and vice versa.

I've not looked for it recently.
Back to top
View user's profile Send private message
sebastia
PostPosted: Sun Dec 29, 2013 9:17 am    Post subject: Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

Thanks, Jeff.
Going into
>>> http://pic.dhe.ibm.com/infocenter/wmqv7/v7r5/index.jsp

... and entering "jms header mapping" as search parameter,
gives back this interesting page :

>>> http://pic.dhe.ibm.com/infocenter/wmqv7/v7r5/index.jsp?topic=%2Fcom.ibm.mq.dev.doc%2Fq031990_.htm&resultof%3D%2522%256a%256d%2573%2522%2520%2522%2568%2565%2561%2564%2565%2572%2522%2520%2522%256d%2561%2570%2570%2569%256e%2567%2522%2520

... whose title is

"Mapping JMS messages onto WebSphere MQ messages"

()

Cheers & Hapy 2014 !

Sebastian.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS mq client connected via CCDT - how to know qmgr name
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.