Announcement Announcement Module
Collapse
No announcement yet.
MessageListenerAdapter converting response message Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MessageListenerAdapter converting response message

    Hi,

    the JMS MessageListenerAdapter just holds a single reference to a messageConverter that will be used for incoming and outgoing messages. Wouldn't it be useful to configure incoming and outgoing message conversion
    independently? Consider a POJO service with following signature:
    Code:
    interface AService {
    public BMessageType business(AMessageType a)
    }
    When implementing MessageConverters for each message type (AMessageType and BMessageType) you would have to subclass the current MessageListenerAdapter to get the desired behaviour. But before subclassing Spring I always scratch my head and wonder if I am not conflicting the design?


    Regards,

    Nils


    P.S. Scratch at least three times!
Working...
X