[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - How to get to a destination given a Delivery?

sergeypk do-not-reply at jboss.com
Tue Jun 5 06:54:56 EDT 2007


Hi,

I'm working on http://jira.jboss.com/jira/browse/JBMESSAGING-938, implementing MaxDeliveryAttempts for destinations. I need to change ServerSessionEndpoint.cancelDeliveryInternal to take the destination's max delivery attempts into account, but I see no way to get to the destination given only a Delivery or Cancel object.

I noticed that destinations are implemented as DeliveryObservers attached to a particular delivery. Should DeliveryObserver interface be enhanced to include getMaxDeliveryAttempts() method or maybe shouldCancel(int deliveryCount)? Or is there another way?

Sergey

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051265#4051265

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051265



More information about the jboss-dev-forums mailing list