[SWS-813] Cannot use jms MessagePostProcessor support with WebServiceMessageDrivenBean Created: 04/Dec/12  Updated: 04/Apr/13  Resolved: 04/Apr/13

Status: Resolved
Project: Spring Web Services
Component/s: Core
Affects Version/s: 2.1.1
Fix Version/s: 2.1.3

Type: Improvement Priority: Major
Reporter: Guillaume Menguy Assignee: Arjen Poutsma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


The MessagePostProcessor can be injected into JmsMessageReceiver but in the WebServiceMessageDrivenBean, the JmsMessageReceiver instance field is private, has no setter, and is instantiated in the onEjbCreate() via a direct call to the constructor (no IOC support)

The only workaround is to subclass JmsMessageReceiver, rename and change the visibility of handleMessage() method and rewrite via subclass the onEjbCreate() method of WebServiceMessageDrivenBean to inject the MessagePostProcessor

Comment by Arjen Poutsma [ 04/Apr/13 ]

Fixed by adding a createPostProcessor method in WebServiceMessageDrivenBean. Default implementation is empty.

Generated at Tue Oct 23 22:27:45 UTC 2018 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.