org.apache.camel.component.jt400
Class Jt400DataQueueProducer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultProducer<Exchange>
org.apache.camel.component.jt400.Jt400DataQueueProducer
- All Implemented Interfaces:
- Processor, Producer<Exchange>, Service
public class Jt400DataQueueProducer
- extends DefaultProducer<Exchange>
Producer to send data to an AS/400 data queue.
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
Jt400DataQueueProducer
protected Jt400DataQueueProducer(Jt400DataQueueEndpoint endpoint)
process
public void process(Exchange exchange)
throws Exception
- Sends the
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.
- Throws:
Exception
doStart
protected void doStart()
throws Exception
- Overrides:
doStart in class DefaultProducer<Exchange>
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Overrides:
doStop in class DefaultProducer<Exchange>
- Throws:
Exception
Apache CAMEL