@Component(value="sjms")
public class SjmsComponent
extends org.apache.camel.support.HeaderFilterStrategyComponent
Modifier | Constructor and Description |
---|---|
|
SjmsComponent() |
protected |
SjmsComponent(Class<? extends org.apache.camel.Endpoint> endpointClass) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
protected SjmsEndpoint |
createSjmsEndpoint(String uri,
String remaining) |
protected void |
doShutdown() |
protected void |
doStart() |
protected void |
doStop() |
protected ExecutorService |
getAsyncStartStopExecutorService() |
String |
getConnectionClientId() |
Integer |
getConnectionCount() |
javax.jms.ConnectionFactory |
getConnectionFactory() |
long |
getConnectionMaxWait() |
String |
getConnectionPassword() |
ConnectionResource |
getConnectionResource() |
String |
getConnectionUsername() |
DestinationCreationStrategy |
getDestinationCreationStrategy() |
JmsKeyFormatStrategy |
getJmsKeyFormatStrategy() |
MessageCreatedStrategy |
getMessageCreatedStrategy() |
TimedTaskManager |
getTimedTaskManager() |
TransactionCommitStrategy |
getTransactionCommitStrategy() |
boolean |
isConnectionTestOnBorrow() |
void |
setConnectionClientId(String connectionClientId)
The client ID to use when creating
Connection when using the default ConnectionFactoryResource . |
void |
setConnectionCount(Integer maxConnections)
The maximum number of connections available to endpoints started under this component
|
void |
setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
A ConnectionFactory is required to enable the SjmsComponent.
|
void |
setConnectionMaxWait(long connectionMaxWait)
The max wait time in millis to block and wait on free connection when the pool is exhausted
when using the default
ConnectionFactoryResource . |
void |
setConnectionPassword(String connectionPassword)
The password to use when creating
Connection when using the default ConnectionFactoryResource . |
void |
setConnectionResource(ConnectionResource connectionResource)
A ConnectionResource is an interface that allows for customization and container control of the ConnectionFactory.
|
void |
setConnectionTestOnBorrow(boolean connectionTestOnBorrow)
When using the default
ConnectionFactoryResource then should each Connection
be tested (calling start) before returned from the pool. |
void |
setConnectionUsername(String connectionUsername)
The username to use when creating
Connection when using the default ConnectionFactoryResource . |
void |
setDestinationCreationStrategy(DestinationCreationStrategy destinationCreationStrategy)
To use a custom DestinationCreationStrategy.
|
void |
setJmsKeyFormatStrategy(JmsKeyFormatStrategy jmsKeyFormatStrategy)
Pluggable strategy for encoding and decoding JMS keys so they can be compliant with the JMS specification.
|
void |
setMessageCreatedStrategy(MessageCreatedStrategy messageCreatedStrategy)
To use the given MessageCreatedStrategy which are invoked when Camel creates new instances of javax.jms.Message
objects when Camel is sending a JMS message.
|
void |
setTimedTaskManager(TimedTaskManager timedTaskManager)
To use a custom TimedTaskManager
|
void |
setTransactionCommitStrategy(TransactionCommitStrategy commitStrategy)
To configure which kind of commit strategy to use.
|
getHeaderFilterStrategy, setEndpointHeaderFilterStrategy, setHeaderFilterStrategy
afterConfiguration, createEndpoint, createEndpoint, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isBasicPropertyBinding, isResolvePropertyPlaceholders, preProcessUri, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setBasicPropertyBinding, setCamelContext, setProperties, setProperties, setResolvePropertyPlaceholders, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
doInit, doResume, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public SjmsComponent()
protected SjmsComponent(Class<? extends org.apache.camel.Endpoint> endpointClass)
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint
in class org.apache.camel.support.DefaultComponent
Exception
protected SjmsEndpoint createSjmsEndpoint(String uri, String remaining)
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.DefaultComponent
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.DefaultComponent
Exception
protected void doShutdown() throws Exception
doShutdown
in class org.apache.camel.support.service.ServiceSupport
Exception
protected ExecutorService getAsyncStartStopExecutorService()
public void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
public javax.jms.ConnectionFactory getConnectionFactory()
public void setConnectionResource(ConnectionResource connectionResource)
public ConnectionResource getConnectionResource()
public void setConnectionCount(Integer maxConnections)
public Integer getConnectionCount()
public void setJmsKeyFormatStrategy(JmsKeyFormatStrategy jmsKeyFormatStrategy)
public JmsKeyFormatStrategy getJmsKeyFormatStrategy()
public TransactionCommitStrategy getTransactionCommitStrategy()
public void setTransactionCommitStrategy(TransactionCommitStrategy commitStrategy)
public DestinationCreationStrategy getDestinationCreationStrategy()
public void setDestinationCreationStrategy(DestinationCreationStrategy destinationCreationStrategy)
public TimedTaskManager getTimedTaskManager()
public void setTimedTaskManager(TimedTaskManager timedTaskManager)
public MessageCreatedStrategy getMessageCreatedStrategy()
public void setMessageCreatedStrategy(MessageCreatedStrategy messageCreatedStrategy)
public boolean isConnectionTestOnBorrow()
public void setConnectionTestOnBorrow(boolean connectionTestOnBorrow)
ConnectionFactoryResource
then should each Connection
be tested (calling start) before returned from the pool.public String getConnectionUsername()
public void setConnectionUsername(String connectionUsername)
Connection
when using the default ConnectionFactoryResource
.public String getConnectionPassword()
public void setConnectionPassword(String connectionPassword)
Connection
when using the default ConnectionFactoryResource
.public String getConnectionClientId()
public void setConnectionClientId(String connectionClientId)
Connection
when using the default ConnectionFactoryResource
.public long getConnectionMaxWait()
public void setConnectionMaxWait(long connectionMaxWait)
ConnectionFactoryResource
.Apache Camel