Announcement Announcement Module
No announcement yet.
MessageDeliveryAware Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • MessageDeliveryAware


    I saw that MessageDeliveryAware is deleted and not present in release jar.
    How can I configure the same functionality, especially the onSend method on a MessageSource?

    What I'm trying to do is fetch events from a source and put them in a JMS queue. When successfully inserted into the queue I want to remove
    the event from the source (onSend).

    Last edited by magbyr; Apr 17th, 2009, 10:41 AM. Reason: More info

  • #2
    I've added a sample related to error handling since 1.0.1 iirc. In your case it seems that you would want to use a jms-outbound-gateway and send the response back to a MethodInvokingChannelAdapter on the onSend method.

    We've avoided the MessageDeliveryAware interface (and related delivery notification mechanism), because there is too big a difference between synchronous and asynchronous handoff to make it sensible to hide that from the user.

    I've sandboxed an AOP based callback header approach that will be implemented in 2.0 in some form, so if you're interested you could look at that as well.