On Thu, 2012-04-26 at 16:43 +0200, Oscar Pernas wrote: > hi all, > > I have this case: > > case activemq::commands::ProducerInfo::ID_PRODUCERINFO:{ > > Pointer<activemq::commands::ProducerInfo> info = > > amqMessage->getDataStructure().dynamicCast<activemq::commands::ProducerInfo>(); > > Pointer<activemq::commands::ProducerId>& aux=info->getProducerId(); > > } > > but I cant find the way to obtain the real client Id, I've only can get the > real identification [hostname-:xxx:xxx...]. Why If I am consuming from > advisory: > > ActiveMQ.Advisory.Producer.Queue.T_STATS_SYSTEM > > When I connect a producer I get a PRODUCER_INFO and when I disconnect it I > get CONNECTION_INFO? Its posible to obtain clien id name? > > > regads >
ProducerInfo has a ProducerId which has a ConnectionId, is that what you are looking for? -- Tim Bish Sr Software Engineer | FuseSource Corp tim.b...@fusesource.com | www.fusesource.com skype: tabish121 | twitter: @tabish121 blog: http://timbish.blogspot.com/