I'm using a topic no doubt about it (furthermore i have more than one
consumer reading the same messages at the same time)

I "browse" the messages using the browseMessages() operation of this topic
in the jconsole under :
org.apache.activemq/localhost/Topic/myTopic



James.Strachan wrote:
> 
> Hmm. Are you using a queue rather than a topic? As you can't browse
> the contents of topics via JMX.
> http://activemq.apache.org/how-does-a-queue-compare-to-a-topic.html
> 
> On 3/8/07, teryz <[EMAIL PROTECTED]> wrote:
>>
>> Indeed, it is NON_PERSISTENT.
>> is this the source of the problem?
>>
>>
>> Suchitha Koneru (sukoneru) wrote:
>> >
>> > What is the delivery mode for the publisher is it non persistent ?
>> >
>> > -----Original Message-----
>> > From: teryz [mailto:[EMAIL PROTECTED]
>> > Sent: Wednesday, March 07, 2007 8:45 AM
>> > To: users@activemq.apache.org
>> > Subject: Re: [Spam: 5.0] Durable Subscription and Message Expiration
>> >
>> >
>> > Hello there,
>> >
>> > Did someone observed the same problem or am i the only one?
>> >
>> > Help please !
>> >
>> >
>> > teryz wrote:
>> >>
>> >> Hello,
>> >>
>> >> I am using a topic with durable subscriptions. I use
>> >> apache-activemq-4.1.0-incubator.
>> >>
>> >> I want to limit the life of the messages my producers post in this
>> > topic.
>> >>
>> >> It seems to me that
>> >>
>> >>           myProducer.setTimeToLive(10000)
>> >>
>> >> was the way to do it (here for ten seconds), but after any time
>> >> (greater than 10secs) without any consumer reading from the topic,
>> >> when launching a consumer i expect it not to find any message in the
>> >> topic but it is not the case.
>> >>
>> >> When browsing the topic with JConsole i found that the JMSExpiration
>> >> for those messages is set to a value like 1173107075408 that seems
>> >> related with the JMSMessageID XXX-1173107063209-XXX and the
>> >> JMSExpiration of the previous message (in this example =
>> >> 1173107073695)
>> >>
>> >> I also tried to set time to live in the send method for my producer
>> >> with the same result as described above.
>> >>
>> >> I saw the Jira : https://issues.apache.org/activemq/browse/AMQ-936 but
>> >
>> >> it is said that the problem is fixed in v4 and it is related with
>> >> queues not topic.
>> >>
>> >> So my question is : is this a bug or is this an expected behaviour for
>> >
>> >> durable subscription or am i missing something here?
>> >>
>> >> Thanx for your help guys,
>> >> Terry.
>> >>
>> >>
>> >>
>> >>
>> >>
>> >
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/Durable-Subscription-and-Message-Expiration-tf3349
>> > 488s2354.html#a9356802
>> > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Durable-Subscription-and-Message-Expiration-tf3349488s2354.html#a9370845
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Durable-Subscription-and-Message-Expiration-tf3349488s2354.html#a9371330
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to