dcsimg
MQ Message's origin
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Manoj_Joseph
Posted On:   Friday, January 10, 2003 05:36 AM

Hi,
Is it possible to retrieve an MQ message's origine - host name/IP?

I have a daemon that has to process messages sent by only certain hosts? Is that possible?

Thanks in advance!
Manoj

Re: MQ Message's origin

Posted By:   Tom_Jenkinson  
Posted On:   Monday, January 13, 2003 04:22 AM

Could you not just set a property at the sender side on the messages, say "hostname" to the value of InetAddress.getHostName(), then you could set configure your MessageConsumer to have a messageselector that only receives messages where "hostname=[requiredhost]"?


Tom Jenkinson

Arjuna Technologies Limited

About | Sitemap | Contact