Skip to content

Commit ddd3eaa

Browse files
committed
Post-processor for WebServiceMessageDrivenBean
Added MessagePostProcessor support for WebServiceMessageDrivenBean. Issue: SWS-813
1 parent f0fc4c8 commit ddd3eaa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

support/src/main/java/org/springframework/ws/transport/jms/WebServiceMessageDrivenBean.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
import org.springframework.ejb.support.AbstractJmsMessageDrivenBean;
2929
import org.springframework.jms.connection.ConnectionFactoryUtils;
30+
import org.springframework.jms.core.MessagePostProcessor;
3031
import org.springframework.jms.support.JmsUtils;
3132
import org.springframework.jndi.JndiLookupFailureException;
3233
import org.springframework.ws.WebServiceMessageFactory;
@@ -97,6 +98,7 @@ protected void onEjbCreate() {
9798
delegate = new JmsMessageReceiver();
9899
delegate.setMessageFactory(createMessageFactory());
99100
delegate.setMessageReceiver(createMessageReceiver());
101+
delegate.setPostProcessor(createPostProcessor());
100102
}
101103
catch (NamingException ex) {
102104
throw new JndiLookupFailureException("Could not create connection", ex);
@@ -155,4 +157,14 @@ protected Session createSession(Connection connection) throws JMSException {
155157
return connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
156158
}
157159

160+
/**
161+
* Creates a JMS {@link MessagePostProcessor} to process JMS messages. Default
162+
* implementation returns {@code null}, meaning that no post processor is used.
163+
*
164+
* @return a message post processor
165+
*/
166+
protected MessagePostProcessor createPostProcessor() {
167+
return null;
168+
}
169+
158170
}

0 commit comments

Comments
 (0)