You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by StanleyH <st...@gmail.com> on 2006/09/04 04:52:54 UTC

any example of durable queue, topic?

Hi,  anyone know where I can find a durable queue and topic example? and
nondurable queue/topic too thanks.

thanks
-- 
View this message in context: http://www.nabble.com/any-example-of-durable-queue%2C-topic--tf2213010.html#a6129202
Sent from the ActiveMQ - User forum at Nabble.com.


Re: any example of durable queue, topic?

Posted by robottaway <ro...@musiciansfriend.com>.
>You can make queues or topics durable by publishing persistent messages 
>to them. See:
>http://www.activemq.org/site/how-do-i-make-messages-durable.html

I'm under the assumption that message delivery mode is by default set to
'PERSISTENT'. See the JMS API:
http://java.sun.com/products/jms/docs.html

Specifically check out the documentation for 'javax.jms.MessageProducer'.
Check out method 'setDeliveryMode', see quote:

"Delivery mode is set to PERSISTENT by default."

-Rob
-- 
View this message in context: http://www.nabble.com/any-example-of-durable-queue%2C-topic--tf2213010.html#a6275307
Sent from the ActiveMQ - User forum at Nabble.com.


Re: any example of durable queue, topic?

Posted by Adrian Co <ac...@exist.com>.
Hi,

You can make queues or topics durable by publishing persistent messages 
to them. See:
http://www.activemq.org/site/how-do-i-make-messages-durable.html

Here's some document on the difference between durable and non-durable 
destinations:
http://www.activemq.org/site/how-do-durable-queues-and-topics-work.html

Hope these helps!

Regards,
Adrian Co


StanleyH wrote:
> Hi,  anyone know where I can find a durable queue and topic example? and
> nondurable queue/topic too thanks.
>
> thanks
>