activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: ActiveMQ-CPP. Any way to obtain clientId in a producerInfo advisory message?
Date Fri, 27 Apr 2012 22:33:51 GMT
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.bish@fusesource.com | www.fusesource.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/


Mime
View raw message