@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, sessionMode
NEW_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, validate
public void open(Serializable checkpoint) throws Exception
open
in interface javax.batch.api.chunk.ItemWriter
open
in class JmsItemReaderWriterBase
Exception
public void writeItems(List<Object> items) throws Exception
writeItems
in interface javax.batch.api.chunk.ItemWriter
Exception
public Serializable checkpointInfo() throws Exception
checkpointInfo
in interface javax.batch.api.chunk.ItemWriter
Exception
public void close()
close
in interface javax.batch.api.chunk.ItemWriter
close
in class JmsItemReaderWriterBase
Copyright © 2018 JBoss by Red Hat. All rights reserved.