activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: Best way to find out which type of Message was received
Date Wed, 18 Jun 2008 18:25:26 GMT

On 18 Jun 2008, at 18:07, Patrick Ruckstuhl wrote:

>
> Hi
>
> What is the best way to find which type (TextMessage,  
> MapMessage, ...) of
> message was received?
>
> I'm currently using a dynamic_cast check to find out which type it  
> is, but
> I'm wondering if there's a better way.
> -- 
> View this message in context: http://www.nabble.com/Best-way-to-find-out-which-type-of-Message-was-received-tp17987537p17987537.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Dynamic cast checking is the best generic way. There is some specific  
ActiveMQ ninja stuff you could do - but that is subject to change



cheers,

Rob

http://open.iona.com/products/enterprise-activemq
http://rajdavies.blogspot.com/





Mime
View raw message