book
Article ID: KB0078469
calendar_today
Updated On:
Description
Preference of expiry property at the wildcard destination level and for the specific destination.
Issue/Introduction
Preference of expiry property at the wildcard destination level and for the specific destination
Resolution
If you specify the expire property at a wildcard destination and then set the expiry property for a specific queue (which is a part of a wildcard destination), the expiry property of the latter would override the property that was set at the wildcard destination level.
For eg:
1. Create a queue "expire" with no expiration set initially.
2. Set the expiration on the queue ">" of 1 day.
3. Do show queue "expire" and check expiration set to 1 day due to inheritance set as per step 2.
4. Now add the expiration on the queue "expire" explicitly of 1 min and after doing show queue "expire" you'll see that the expiration would be overwritten from 1 day to 1 min.
5. Again If you change the expiration of the queue ">" from 1 day to 10 mins to check if the step 4 holds good.
6. Then if you see the properties of the queue "expire", it would still be having expiration set to 1 min as per step 4.
Find below the tests and outputs:
tcp://localhost:7222> create queue expire
Queue 'expire' has been created
tcp://localhost:7222> show queue expire
Queue: expire
Type: static
Properties: *prefetch=5,*store=$sys.nonfailsafe
JNDI Names: <none>
Bridges: <none>
Receivers: 0
Pending Msgs: 0, (0 persistent)
Delivered Msgs: 0
Pending Msgs Size: 0.0 Kb, (0.0 Kb persistent)
tcp://localhost:7222> addprop queue > expiration=1day
Queue '>' has been modified
tcp://localhost:7222> show queue expire
Queue: expire
Type: static
Properties: *prefetch=5,*expiration=1day,*store=$sys.nonfailsafe
JNDI Names: <none>
Bridges: <none>
Receivers: 0
Pending Msgs: 0, (0 persistent)
Delivered Msgs: 0
Pending Msgs Size: 0.0 Kb, (0.0 Kb persistent)
tcp://localhost:7222> addprop queue expire expiration=1min
Queue 'expire' has been modified
tcp://localhost:7222> show queue expire
Queue: expire
Type: static
Properties: *prefetch=5,expiration=1min,*store=$sys.nonfailsafe
JNDI Names: <none>
Bridges: <none>
Receivers: 0
Pending Msgs: 0, (0 persistent)
Delivered Msgs: 0
Pending Msgs Size: 0.0 Kb, (0.0 Kb persistent)
tcp://localhost:7222> addprop queue > expiration=10min
Queue '>' has been modified
tcp://localhost:7222> show queue expire
Queue: expire
Type: static
Properties: *prefetch=5,expiration=1min,*store=$sys.nonfailsafe
JNDI Names: <none>
Bridges: <none>
Receivers: 0
Pending Msgs: 0, (0 persistent)
Delivered Msgs: 0
Pending Msgs Size: 0.0 Kb, (0.0 Kb persistent)
tcp://localhost:7222>