You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by cmaxo <cm...@engineer.com> on 2007/04/05 19:07:28 UTC
activemq-cpp setStringProperty
I'm trying to set the JMSXGroupID on a text message using c++. Whenever I
set this property I get an IllegalArgumentException thrown b/c this property
is a pre-defined header. Is there another way that I should be setting the
groupid for a message? Here is a sample of what I'm trying to do:
TextMessage* textMessage = session->createTextMessage("hello");
textMessage->setStringProperty("JMSXGroupID", "1234");
I looked in the source code in StompMessage.h and the implementation of
setStringProperty first calls a function called testProperty. testPropety
checks to see if the name of the property is predefined. So, I'm thinking
that I need to set the value of the header in some other way but I can't
seem to figure out how. If anyone could tell me how to set this up so that
I can use message groups correctly I would greatly appreciate it.
corey
--
View this message in context: http://www.nabble.com/activemq-cpp-setStringProperty-tf3532714s2354.html#a9859793
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: activemq-cpp setStringProperty
Posted by Timothy Bish <ta...@twcny.rr.com>.
This is an ActiveMQ specific header, not a JMS one, so we have removed
it from our mapping as the JMS API provides no methods for setting this
property. This doesn't mean however that you cannot set it yourself
using the the property setters that you were using previously, it just
means we don't check for it as one of our known headers.
regards
Tim
cmaxo wrote:
> It looks like the fix was to remove JMSXGroupID as a header and a few other
> fields. Is this feature no longer to be available? Here is a patch file
> for the fix that I created, however with the release this morning the header
> constants have been removed so it doesn't compile. Please let me know if
> this will no longer be a feature of the activemq-cpp client library.
>
> http://www.nabble.com/file/7743/jmsxgroupid-patch jmsxgroupid-patch
>
>
> Thanks,
> Corey
>
>
>
>
> Yup - that needs to be fixed. I've created an issue to capture this:
> https://issues.apache.org/activemq/browse/AMQCPP-96
>
> We're going to be releasing v2.0 very soon - we should be able to get
> this into 2.0 without a problem.
>
> Thanks!
> Nate
>
>
RE: activemq-cpp setStringProperty
Posted by cmaxo <cm...@engineer.com>.
It looks like the fix was to remove JMSXGroupID as a header and a few other
fields. Is this feature no longer to be available? Here is a patch file
for the fix that I created, however with the release this morning the header
constants have been removed so it doesn't compile. Please let me know if
this will no longer be a feature of the activemq-cpp client library.
http://www.nabble.com/file/7743/jmsxgroupid-patch jmsxgroupid-patch
Thanks,
Corey
Yup - that needs to be fixed. I've created an issue to capture this:
https://issues.apache.org/activemq/browse/AMQCPP-96
We're going to be releasing v2.0 very soon - we should be able to get
this into 2.0 without a problem.
Thanks!
Nate
--
View this message in context: http://www.nabble.com/activemq-cpp-setStringProperty-tf3532714s2354.html#a9887497
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
RE: activemq-cpp setStringProperty
Posted by cmaxo <cm...@engineer.com>.
Great! I created a patch for it but it looks like someone already did that in
the issue tracker.
Corey
Yup - that needs to be fixed. I've created an issue to capture this:
https://issues.apache.org/activemq/browse/AMQCPP-96
We're going to be releasing v2.0 very soon - we should be able to get
this into 2.0 without a problem.
Thanks!
Nate
--
View this message in context: http://www.nabble.com/activemq-cpp-setStringProperty-tf3532714s2354.html#a9865845
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
RE: activemq-cpp setStringProperty
Posted by "Mittler, Nathan" <na...@sensis.com>.
Yup - that needs to be fixed. I've created an issue to capture this:
https://issues.apache.org/activemq/browse/AMQCPP-96
We're going to be releasing v2.0 very soon - we should be able to get
this into 2.0 without a problem.
Thanks!
Nate
> -----Original Message-----
> From: cmaxo [mailto:cmaxo@engineer.com]
> Sent: Thursday, April 05, 2007 1:07 PM
> To: users@activemq.apache.org
> Subject: activemq-cpp setStringProperty
>
>
> I'm trying to set the JMSXGroupID on a text message using
> c++. Whenever I set this property I get an
> IllegalArgumentException thrown b/c this property is a
> pre-defined header. Is there another way that I should be
> setting the groupid for a message? Here is a sample of what
> I'm trying to do:
>
> TextMessage* textMessage = session->createTextMessage("hello");
> textMessage->setStringProperty("JMSXGroupID", "1234");
>
> I looked in the source code in StompMessage.h and the
> implementation of setStringProperty first calls a function
> called testProperty. testPropety checks to see if the name
> of the property is predefined. So, I'm thinking that I need
> to set the value of the header in some other way but I can't
> seem to figure out how. If anyone could tell me how to set
> this up so that I can use message groups correctly I would
> greatly appreciate it.
>
> corey
> --
> View this message in context:
> http://www.nabble.com/activemq-cpp-setStringProperty-tf3532714
s2354.html#a9859793
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>