activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: How to expire or set time to live for topic messages?
Date Thu, 06 Jun 2013 17:06:29 GMT
Take a look at this method:

http://docs.oracle.com/javaee/6/api/javax/jms/MessageProducer.html#send(javax.jms.Destination,%20javax.jms.Message,%20int,%20int,%20long)


On Thu, Jun 6, 2013 at 4:30 AM, ssahu <sonal.sahu1@wipro.com> wrote:

> > This is regarding active mq topic.
> > Recently we have seen issue of head dump saying Topic containing huge
> > number of messages which is taking lot of memory. It seems topic messages
> > were not consumed by the consumer, might be(not sure)  because the
> > consumer died due to some other reason.
>
> > What are the ways to expire or delete messages from topic depending on
> > time or non-availability of consumer?
> > Could you please suggest some good solution to improve or fix this issue?
>
> We tried setting setJmsExpiration(120000) method to
> message(activemqObjectMessage) properties but the topic messages are not
> geting expired.
>
> Thanks
> Sonal
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/How-to-expire-or-set-time-to-live-for-topic-messages-tp4667952.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message