So I guess the issue is that this is a behavior of ActiveMQ by default.
Does the non-persistent deliveryMode work in activemq 4.1.1?  I'm stuck on
that version since that is what the latest Servicemix uses, but when I
attempt to set the jms:provider to use a deliverymode of "1", my producer
will still hang when the topic message enqueue count goes above 1100.  Are
there any other options for having these messages not hang around on the
topic?  I tried the TTL, but that setting does absolutely nothing as well.

Any suggestions?

On Tue, Aug 19, 2008 at 8:54 PM, Ryan Moquin <[EMAIL PROTECTED]> wrote:

> Hello,
>
> I'm trying to understand how to configure ActiveMQ (4.1.1 is what
> Servicemix is using) properly so that my Servicemix services will stop
> hanging after a few minutes of sending messages to a provider endpoint. The
> ActiveMQ provider endpoint is consistently deadlocking after a short period
> of time (about 10 minutes, 1500 messages).  It appears as though activemq is
> configured out of the box (or maybe Servicemix configures it this way) to
> persistent every single message in memory whether or not it's been delivered
> (or atleast maybe the ones that aren't delivered, not completely sure).
> Basically, the messages I'm producing should be thrown away if there is no
> consumer.  But currently the messages just pile up on my destination topic
> in ActiveMQ until it starts refusing to accept anymore messages.  This
> happens extremely quickly, as I mentioned above, when there are no consumers
> subscribed to the topic.
>
> I've tried setting the TTL for the messages to 1000, I've tried setting the
> deliverymode to non-persistent, but no matter what, my service will
> deadlock.  When I look at the topic in the JMX manager, I will see a very
> high enqueue count, which I'm assuming means my messages are just sitting
> there, waiting for a consumer.  Is there any way to make activemq not keep
> these messages around?
>
> Thanks!
>

Reply via email to