You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by LeeZ01 <le...@us.usana.com> on 2008/01/04 19:18:29 UTC

How to retrieve message producer's IP address from consumer side?

Does any one know how to retrieve the producer's IP address from the consumer
side?
I use ActiveMQ 4.1.1 and Spring framework 2.0.

Thanks in advance.

-- 
View this message in context: http://www.nabble.com/How-to-retrieve-message-producer%27s-IP-address-from-consumer-side--tp14622124s2354p14622124.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: How to retrieve message producer's IP address from consumer side?

Posted by ttmdev <jo...@ttmsolutions.com>.
If all else fails, you can have the producer assign its IP address to a
message property. 

Joe


Hiram Chirino wrote:
> 
> Since producers are decoupled from the consumers this is not currently
> easy to do.  But it it may be possible hack something up since the
> producer's hostname is encoded into the message id.
> 
> Regards,
> Hiram
> 
> On Jan 4, 2008 1:18 PM, LeeZ01 <le...@us.usana.com> wrote:
>>
>> Does any one know how to retrieve the producer's IP address from the
>> consumer
>> side?
>> I use ActiveMQ 4.1.1 and Spring framework 2.0.
>>
>> Thanks in advance.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-retrieve-message-producer%27s-IP-address-from-consumer-side--tp14622124s2354p14622124.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Regards,
> Hiram
> 
> Blog: http://hiramchirino.com
> 
> Open Source SOA
> http://open.iona.com
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-retrieve-message-producer%27s-IP-address-from-consumer-side--tp14622124s2354p14626216.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: How to retrieve message producer's IP address from consumer side?

Posted by Hiram Chirino <hi...@hiramchirino.com>.
Since producers are decoupled from the consumers this is not currently
easy to do.  But it it may be possible hack something up since the
producer's hostname is encoded into the message id.

Regards,
Hiram

On Jan 4, 2008 1:18 PM, LeeZ01 <le...@us.usana.com> wrote:
>
> Does any one know how to retrieve the producer's IP address from the consumer
> side?
> I use ActiveMQ 4.1.1 and Spring framework 2.0.
>
> Thanks in advance.
>
> --
> View this message in context: http://www.nabble.com/How-to-retrieve-message-producer%27s-IP-address-from-consumer-side--tp14622124s2354p14622124.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>



-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Open Source SOA
http://open.iona.com