You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by ferry97 <vr...@yahoo.com> on 2007/08/23 06:28:49 UTC

RE: problem set the expiration time for durable topic messages

Hi,
So should we use Message.setJMSExpiration or Producer.setTimeToLive ?
Thanks.
Regards,
Ferry


pbolle wrote:
> 
> Hi,
> 
> Sorry, my last comment was not correct. In the trunk version I have the
> problem that all messages never reach the subscriber. Now I corrected my
> unit test and I have another problem.
> 
> The new trunk version now has a new problem. It is not possible to delete
> a durable subscriber via mbean.
> 
> I have built some tests that simulate most of my use cases. If I have some
> junit tests, what is the best way to submit these tests?
> 
> If somebody would give me a hint how to change my tests that fits to
> ActiveMQ guidelines, I would improve my test.
> 
> I would be pleased to hearing from you soon.
> 
> Thanks in advanced.
> 
> Best regards Philipp
> By the way I attached the test. The test fails in testTimeOut with the
> trunk version and in some other places with the 4.1.1
> 
> 
> Suchitha Koneru (sukoneru) wrote:
>> 
>> Hello Philipp,
>> Thank you for the update. What is the SVN version ? Could you please
>> clarify 
>> 
>  http://www.nabble.com/file/p11770854/TopicTest.java TopicTest.java 
> 

-- 
View this message in context: http://www.nabble.com/problem-set-the-expiration-time-for-durable-topic-messages-tf4025141s2354.html#a12287390
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: problem set the expiration time for durable topic messages

Posted by ferry97 <vr...@yahoo.com>.
Thanks, I tried it, and it works (in ActiveMQ5 SNAPSHOT, as mentioned in JIRA
ActiveMQ 4.1.1 has bug regarding handling expired message).
BTW, does the expired message persist ? or it can be configured ? How to
access the expired message?
-- 
View this message in context: http://www.nabble.com/problem-set-the-expiration-time-for-durable-topic-messages-tf4025141s2354.html#a12304911
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: problem set the expiration time for durable topic messages

Posted by Rob Davies <ra...@gmail.com>.
set time to live on the message producer ...

On Aug 23, 2007, at 5:28 AM, ferry97 wrote:

>
> Hi,
> So should we use Message.setJMSExpiration or Producer.setTimeToLive ?
> Thanks.
> Regards,
> Ferry
>
>
> pbolle wrote:
>>
>> Hi,
>>
>> Sorry, my last comment was not correct. In the trunk version I  
>> have the
>> problem that all messages never reach the subscriber. Now I  
>> corrected my
>> unit test and I have another problem.
>>
>> The new trunk version now has a new problem. It is not possible to  
>> delete
>> a durable subscriber via mbean.
>>
>> I have built some tests that simulate most of my use cases. If I  
>> have some
>> junit tests, what is the best way to submit these tests?
>>
>> If somebody would give me a hint how to change my tests that fits to
>> ActiveMQ guidelines, I would improve my test.
>>
>> I would be pleased to hearing from you soon.
>>
>> Thanks in advanced.
>>
>> Best regards Philipp
>> By the way I attached the test. The test fails in testTimeOut with  
>> the
>> trunk version and in some other places with the 4.1.1
>>
>>
>> Suchitha Koneru (sukoneru) wrote:
>>>
>>> Hello Philipp,
>>> Thank you for the update. What is the SVN version ? Could you please
>>> clarify
>>>
>>  http://www.nabble.com/file/p11770854/TopicTest.java TopicTest.java
>>
>
> -- 
> View this message in context: http://www.nabble.com/problem-set-the- 
> expiration-time-for-durable-topic-messages- 
> tf4025141s2354.html#a12287390
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>