This content has been marked as final.
Show 3 replies
-
1. Re: Expiry requires a consumer in order to work?
clebert.suconic Jul 20, 2009 1:47 PM (in response to clebert.suconic)This came into my attention as I was writing a test.
I" m sending a message as:clientFile.setExpiration(System.currentTimeMillis()); producer.send(clientFile);
Expiry Address is properly configured:AddressSettings addressSettings = new AddressSettings(); addressSettings.setExpiryAddress(ADDRESS_EXPIRY); server.getAddressSettingsRepository().addMatch("*", addressSettings);
But no message expiried until I added these two lines of code:ClientConsumer consumer2 = session.createConsumer(ADDRESS); assertNull(consumer2.receive(1000));
-
2. Re: Expiry requires a consumer in order to work?
ataylor Jul 20, 2009 2:07 PM (in response to clebert.suconic)Clebert,
we have an expiry reaper that runs every thirty seconds and expires messages on the server.
see PostOfficeImpl:Reaper -
3. Re: Expiry requires a consumer in order to work?
clebert.suconic Jul 20, 2009 2:15 PM (in response to clebert.suconic)Duh.. right!
thanks! :-)