activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marko111 <markofo...@yahoo.com>
Subject Re: NMS and message groups
Date Tue, 26 Aug 2008 13:16:39 GMT

Thanks,

I have solved my problem with ActiveMQMessage object. 
I will agree we should raise JIRA for this.



James.Strachan wrote:
> 
> Am wondering if this is a bug. There's a definite property on the
> ActiveMQMessage.NMSXGroupID.
> 
> e.g.
> 
> ActiveMQMessage msg = ...
> msg.NMSXGroupID = "Group1";
> 
> Maybe the properties in IMessage.Properties are not correctly copied
> across to the right property?
> 
> Taking a look at MessagePropertyHelper - it seems the
> GetObjectProperty / SetObjectProperty need to use introspection to
> determine all the available properties on the ActiveMQMessage class
> and call the correct property setter method - rather than passing them
> in the generic properties map.
> 
> http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/main/csharp/OpenWire/MessagePropertyHelper.cs?revision=590096&view=markup
> 
> We should raise a JIRA for this
> 
> 2008/8/25 Marko111 <markoforge@yahoo.com>:
>>
>> Hi everyone,
>>
>> I am having a problem with message groups. Can someone please send me an
>> example of how to use message  grouping feature with NMS. I tried using
>> "NMSXGroupID" property like this:
>>
>> IMessage message1 = producer.CreateTextMessage("Message Body");
>> message1.Properties["NMSXGroupID"] = "Group 1";
>>
>> IMessage message2 = producer.CreateTextMessage("Message Body");
>> message1.Properties["NMSXGroupID"] = "Group 1";
>>
>> IMessage message3 = producer.CreateTextMessage("Message Body");
>> message1.Properties["NMSXGroupID"] = "Group 2";
>>
>> producer.Send(message1);
>> producer.Send(message2);
>> producer.Send(message3);
>>
>> I created two consumer applications but first consumer receives message1
>> and
>> then second consumer receives receives message2 but message1 and message2
>> have the same group id!
>>
>> Please help
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/NMS-and-message-groups-tp19143221p19143221.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> James
> -------
> http://macstrac.blogspot.com/
> 
> Open Source Integration
> http://open.iona.com
> 
> 

-- 
View this message in context: http://www.nabble.com/NMS-and-message-groups-tp19143221p19161864.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message