On page

http://activemq.apache.org/advisory-message.html

data structures named ProducerInfo + ConsumerInfo are mentioned.
Where do I find these data structures explained (resp. which fields they
contain in detail) ?

Furthermore I wonder how I can detect wether an incoming msg on an Advisorc
topic is a ProducerInfo OR ConsumerInfo type msg? On the web page above a
java sample is shown where an incoming msg is always casted on ProducerInfo:

ProducerInfo prod = (ProducerInfo) aMsg.getDataStructure();

Why ProducerInfo and not ConsumerInfo?

I expected some sort of investigation first:

if (aMsg instanceOf ProducerInfo) {
   ProducerInfo prod = (ProducerInfo) aMsg.getDataStructure(); }
else  {
   ConsumerInfo prod = (ConsumerInfo) aMsg.getDataStructure(); }
....

So how should this look like officially? Is there a more elaborated java
example?

Ben





-- 
View this message in context: 
http://old.nabble.com/Where-is-ProducerInfo%2BConsumerInfo-data-structure-for-Advisory-Msgs--tp29490375p29490375.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to