public class SjmsProducer
extends org.apache.camel.support.DefaultAsyncProducer
| Constructor and Description |
|---|
SjmsProducer(SjmsEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected ReplyManager |
createReplyManager() |
protected ReplyManager |
createReplyManager(String replyTo) |
protected String |
determineCorrelationId(javax.jms.Message message)
Strategy to determine which correlation id to use among JMSMessageID and JMSCorrelationID.
|
protected void |
doInit() |
protected void |
doSend(org.apache.camel.Exchange exchange,
boolean inOut,
String destinationName,
MessageCreator messageCreator)
Sends the message using the JmsTemplate.
|
protected void |
doStart() |
protected void |
doStop() |
SjmsEndpoint |
getEndpoint() |
SjmsTemplate |
getInOnlyTemplate() |
SjmsTemplate |
getInOutTemplate() |
org.apache.camel.spi.UuidGenerator |
getUuidGenerator() |
protected void |
initReplyManager() |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
protected boolean |
processInOnly(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
protected boolean |
processInOut(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
protected javax.jms.Destination |
resolveOrCreateDestination(String destinationName,
javax.jms.Session session) |
void |
setInOnlyTemplate(SjmsTemplate inOnlyTemplate) |
void |
setInOutTemplate(SjmsTemplate inOutTemplate) |
protected void |
setMessageId(org.apache.camel.Exchange exchange) |
void |
setUuidGenerator(org.apache.camel.spi.UuidGenerator uuidGenerator) |
protected void |
testConnectionOnStartup()
Pre tests the connection before starting the listening.
|
protected void |
unInitReplyManager() |
createExchange, isSingleton, toStringbuild, doBuild, doFail, 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, waitpublic SjmsProducer(SjmsEndpoint endpoint)
public SjmsEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.EndpointAwaregetEndpoint in class org.apache.camel.support.DefaultProducerprotected void doInit()
throws Exception
doInit in class org.apache.camel.support.service.BaseServiceExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultProducerExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultProducerExceptionprotected void initReplyManager()
protected void unInitReplyManager()
protected ReplyManager createReplyManager(String replyTo) throws Exception
Exceptionprotected ReplyManager createReplyManager() throws Exception
Exceptionprotected void testConnectionOnStartup()
throws org.apache.camel.FailedToCreateProducerException
org.apache.camel.FailedToCreateProducerException - is thrown if testing the connection failedpublic boolean process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
protected boolean processInOut(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
protected boolean processInOnly(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
protected void setMessageId(org.apache.camel.Exchange exchange)
public SjmsTemplate getInOnlyTemplate()
public void setInOnlyTemplate(SjmsTemplate inOnlyTemplate)
public SjmsTemplate getInOutTemplate()
public void setInOutTemplate(SjmsTemplate inOutTemplate)
public org.apache.camel.spi.UuidGenerator getUuidGenerator()
public void setUuidGenerator(org.apache.camel.spi.UuidGenerator uuidGenerator)
protected javax.jms.Destination resolveOrCreateDestination(String destinationName, javax.jms.Session session) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected String determineCorrelationId(javax.jms.Message message) throws javax.jms.JMSException
message - the JMS messagejavax.jms.JMSException - can be thrownprotected void doSend(org.apache.camel.Exchange exchange,
boolean inOut,
String destinationName,
MessageCreator messageCreator)
throws Exception
exchange - the exchangeinOut - use inOut or inOnly templatedestinationName - the destinationmessageCreator - the creator to create the Message to sendExceptionApache Camel