Class JmsMethodInvocationRecoverer<T>
java.lang.Object
org.springframework.batch.item.jms.JmsMethodInvocationRecoverer<T>
- All Implemented Interfaces:
org.springframework.retry.interceptor.MethodInvocationRecoverer<T>
public class JmsMethodInvocationRecoverer<T>
extends Object
implements org.springframework.retry.interceptor.MethodInvocationRecoverer<T>
- Author:
- Dave Syer, Mahmoud Ben Hassine
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSend one message per item in the arguments list using the default destination of the jms template.void
setJmsTemplate
(org.springframework.jms.core.JmsOperations jmsTemplate) Setter for jms template.
-
Field Details
-
logger
protected org.apache.commons.logging.Log logger
-
-
Constructor Details
-
JmsMethodInvocationRecoverer
public JmsMethodInvocationRecoverer()
-
-
Method Details
-
setJmsTemplate
public void setJmsTemplate(org.springframework.jms.core.JmsOperations jmsTemplate) Setter for jms template.- Parameters:
jmsTemplate
- aJmsOperations
instance
-
recover
Send one message per item in the arguments list using the default destination of the jms template. If the recovery is successfulnull
is returned.- Specified by:
recover
in interfaceorg.springframework.retry.interceptor.MethodInvocationRecoverer<T>
- See Also:
-
MethodInvocationRecoverer.recover(Object[], Throwable)
-