public class SjmsConsumer
extends org.apache.camel.support.DefaultConsumer
implements org.apache.camel.Suspendable
| Constructor and Description |
|---|
SjmsConsumer(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor,
MessageListenerContainer listenerContainer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
SjmsEndpoint |
getEndpoint() |
protected void |
prepareAndStartListenerContainer() |
void |
startListenerContainer()
Starts the JMS listener container
Can be used to start this consumer later if it was configured to not auto startup.
|
protected void |
stopAndDestroyListenerContainer() |
protected void |
testConnectionOnStartup()
Pre tests the connection before starting the listening.
|
createUoW, doInit, doneUoW, getAsyncProcessor, getExceptionHandler, getProcessor, getRoute, getRouteId, handleException, handleException, setExceptionHandler, setRoute, setRouteId, 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 SjmsConsumer(org.apache.camel.Endpoint endpoint,
org.apache.camel.Processor processor,
MessageListenerContainer listenerContainer)
public SjmsEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.EndpointAwaregetEndpoint in class org.apache.camel.support.DefaultConsumerprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultConsumerExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultConsumerExceptionprotected void prepareAndStartListenerContainer()
protected void testConnectionOnStartup()
throws org.apache.camel.FailedToCreateConsumerException
org.apache.camel.FailedToCreateConsumerException - is thrown if testing the connection failedpublic void startListenerContainer()
protected void stopAndDestroyListenerContainer()
Apache Camel