5 Replies Latest reply on Jun 7, 2007 6:54 AM by Tim Fox

    How to get to a destination given a Delivery?

    Sergey Koshcheyev Newbie

      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