Results 1 to 2 of 2

Thread: MessageDeliveryAware

  1. #1
    Join Date
    Apr 2009
    Location
    Bergen, Norway
    Posts
    3

    Default MessageDeliveryAware

    Hello.

    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).

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

  2. #2
    Join Date
    May 2007
    Location
    Netherlands
    Posts
    614

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •