public class Jt400DataQueueProducer
extends org.apache.camel.support.DefaultProducer
Producer to send data to an AS/400 data queue.| Modifier | Constructor and Description |
|---|---|
protected |
Jt400DataQueueProducer(Jt400Endpoint endpoint)
Performs the lifecycle logic of this producer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
process(org.apache.camel.Exchange exchange)
Sends the
Exchange's in body to the AS/400 data queue. |
createExchange, doStart, doStop, getEndpoint, isSingleton, toStringbuild, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected Jt400DataQueueProducer(Jt400Endpoint 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 Jt400Configuration.Format.binary, the data queue entry's
data will be sent as a byte[]. If the endpoint's format is
set to Jt400Configuration.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.ExceptionApache Camel