Kbase P18172: SonicMQ: How to know the userid that has sent a message and from what queue it comes
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/15/2008 |
|
Status: Unverified
GOAL:
How to know the userid that sent a message and from what queue came that message
FACT(s) (Environment):
SonicMQ 4.x
FIX:
Like you can see from the Talk example that comes with the product
is it at the application level to deliver the identifying information
within the message.
Usefully methods of the Message interface for doing that to find within
the API Reference that comes with the product are:
public void setStringProperty(java.lang.String name, java.lang.String
value)
throws JMSException
and
public java.lang.String getStringProperty(java.lang.String name)
throws JMSException
The information from which queue the message is coming you will get with
the method:
public Destination getJMSDestination()
throws JMSException
of the Message interface.