You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Brian Arkills <ba...@uw.edu> on 2010/10/13 19:40:56 UTC

I think there is an error on http://activemq.apache.org/nms/examples.html

I'm a newbie, so I could certainly be wrong, but ....

The synchronous example has a line that doesn't seem to be compatible with
the Apache.NMS libraries.

This line:
   producer.Persistent = true;

is the problem I see. The IMessageProducer class does not have a Persistent
property. 

I believe, but again I'm a newbie so could be wrong, that that line should
be replaced with:
   producer.DeliveryMode = MsgDeliveryMode.Persistent;

I would love to hear confirmation from someone more experienced that this is
correct.

Brian Arkills
-- 
View this message in context: http://activemq.2283324.n4.nabble.com/I-think-there-is-an-error-on-http-activemq-apache-org-nms-examples-html-tp2994113p2994113.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: I think there is an error on http://activemq.apache.org/nms/examples.html

Posted by "e.semog" <e....@gmail.com>.
Hi Brian,

Yes, I think you are correct.  The example is out of date.  When the API was
re-worked, the sample was not updated.  Your suggested change is the correct
equivalent API that should be called.

Best,
Jim

-- 
View this message in context: http://activemq.2283324.n4.nabble.com/I-think-there-is-an-error-on-http-activemq-apache-org-nms-examples-html-tp2994113p2996104.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.