[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


 Description   

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



 Comments   
Comment by Arjen Poutsma [ 04/Apr/13 ]

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

Generated at Mon Dec 18 22:09:37 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.