public class JmsItemWriter<T> extends java.lang.Object implements ItemWriter<T>
ItemWriter for JMS using a JmsTemplate. The template
should have a default destination, which will be used to send items in
write(List).| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
JmsItemWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
setJmsTemplate(org.springframework.jms.core.JmsOperations jmsTemplate)
Setter for JMS template.
|
void |
write(java.util.List<? extends T> items)
Send the items one-by-one to the default destination of the JMS template.
|
public void setJmsTemplate(org.springframework.jms.core.JmsOperations jmsTemplate)
jmsTemplate - a JmsOperations instancepublic void write(java.util.List<? extends T> items) throws java.lang.Exception
write in interface ItemWriter<T>java.lang.Exception - if there are errors. The framework will catch the
exception and convert or rethrow it as appropriate.ItemWriter.write(java.util.List)