[jboss-user] [Messaging, JMS & JBossMQ] - message expiration upon a condition
girafy
do-not-reply at jboss.com
Mon Jun 25 10:57:20 EDT 2007
Hi all,
I need to make a message in a topic expired (ttl=0) upon arrival of a newer message with the same id (property). I imagine that this can be done by creating my own version of the TracingInterceptor that overrides the addMessage method and invokes the setJMSExpiration() on all messages with the same property that exist in the destination. But this doesn't seem to be the most performant way of doing this. Can anybody suggest a better way of doing this (e.g. delete messages from the destination before insertion on the resource layer)?
Thanks a lot!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057387#4057387
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057387
More information about the jboss-user
mailing list