|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.item.jms.JmsItemWriter<T>
public class JmsItemWriter<T>
An ItemWriter for JMS using a JmsTemplate. The template
should have a default destination, which will be used to send items in
write(List).
The implementation is thread safe after its properties are set (normal
singleton behavior).
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
JmsItemWriter()
|
|
| Method Summary | |
|---|---|
void |
setJmsTemplate(org.springframework.jms.core.JmsOperations jmsTemplate)
Setter for JMS template. |
void |
write(List<? extends T> items)
Send the items one-by-one to the default destination of the jms template. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public JmsItemWriter()
| Method Detail |
|---|
public void setJmsTemplate(org.springframework.jms.core.JmsOperations jmsTemplate)
jmsTemplate - a JmsOperations instance
public void write(List<? extends T> items)
throws Exception
write in interface ItemWriter<T>Exception - if there are errors. The framework will catch the
exception and convert or rethrow it as appropriate.ItemWriter.write(java.util.List)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||