
@Named @Dependent public class JmsItemWriter extends JmsItemReaderWriterBase implements javax.batch.api.chunk.ItemWriter
javax.batch.api.chunk.ItemWriter that sends data items to a JMS destination. It can
sends the following JMS message types:
java.util.Map, a MapMessage is created, populated with the data
contained in the data item, and sent;
java.lang.String, a TextMessage is created with the text content
in the data item, and sent;
javax.jms.Message, it is sent as is;
ObjectMessage is created with the data item object, and sent.
JmsItemReader,
JmsItemReaderWriterBase| Modifier and Type | Field and Description |
|---|---|
protected javax.jms.MessageProducer |
producer |
connection, connectionFactory, connectionFactoryInstance, connectionFactoryLookupName, destination, destinationInstance, destinationLookupName, session, sessionModeNEW_LINE, resource, skipBeanValidation| Constructor and Description |
|---|
JmsItemWriter() |
| Modifier and Type | Method and Description |
|---|---|
Serializable |
checkpointInfo() |
void |
close() |
void |
open(Serializable checkpoint) |
void |
writeItems(List<Object> items) |
getInputStream, getOutputStream, getValidator, validatepublic void open(Serializable checkpoint) throws Exception
open in interface javax.batch.api.chunk.ItemWriteropen in class JmsItemReaderWriterBaseExceptionpublic void writeItems(List<Object> items) throws Exception
writeItems in interface javax.batch.api.chunk.ItemWriterExceptionpublic Serializable checkpointInfo() throws Exception
checkpointInfo in interface javax.batch.api.chunk.ItemWriterExceptionpublic void close()
close in interface javax.batch.api.chunk.ItemWriterclose in class JmsItemReaderWriterBaseCopyright © 2018 JBoss by Red Hat. All rights reserved.