public class Jt400DataQueueProducer
extends org.apache.camel.impl.DefaultProducer
Producer to send data to an AS/400 data queue.| Modifier | Constructor and Description |
|---|---|
protected |
Jt400DataQueueProducer(Jt400DataQueueEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
void |
process(org.apache.camel.Exchange exchange)
Sends the
Exchange's in body to the AS/400 data queue. |
createExchange, createExchange, createExchange, getEndpoint, isSingleton, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendprotected Jt400DataQueueProducer(Jt400DataQueueEndpoint endpoint)
public void process(org.apache.camel.Exchange exchange)
throws Exception
Exchange's in body to the AS/400 data queue. If the
endpoint's format is set to Jt400DataQueueEndpoint.Format.binary, the data queue entry's
data will be sent as a byte[]. If the endpoint's format is
set to Jt400DataQueueEndpoint.Format.text, the data queue entry's data will be sent as a
String.
If the endpoint is configured to publish to a KeyedDataQueue,
then the Message header KEY must be set.Exceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.impl.DefaultProducerExceptionApache Camel