java.lang.Object | |
↳ | org.springframework.jms.core.support.JmsGatewaySupport |
Convenient super class for application classes that need JMS access.
Requires a ConnectionFactory or a JmsTemplate instance to be set.
It will create its own JmsTemplate if a ConnectionFactory is passed in.
A custom JmsTemplate instance can be created for a given ConnectionFactory
through overriding the createJmsTemplate(ConnectionFactory)
method.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
logger | Logger available to subclasses |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
| |||||||||||
Return the JMS ConnectionFactory used by the gateway.
| |||||||||||
Return the JmsTemplate for the gateway.
| |||||||||||
Set the JMS connection factory to be used by the gateway.
| |||||||||||
Set the JmsTemplate for the gateway.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a JmsTemplate for the given ConnectionFactory.
| |||||||||||
Subclasses can override this for custom initialization behavior.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
|
Logger available to subclasses
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
Return the JMS ConnectionFactory used by the gateway.
Set the JMS connection factory to be used by the gateway. Will automatically create a JmsTemplate for the given ConnectionFactory.
createJmsTemplate(ConnectionFactory)
Set the JmsTemplate for the gateway.
Create a JmsTemplate for the given ConnectionFactory. Only invoked if populating the gateway with a ConnectionFactory reference.
Can be overridden in subclasses to provide a JmsTemplate instance with a different configuration or the JMS 1.0.2 version, JmsTemplate102.
connectionFactory | the JMS ConnectionFactory to create a JmsTemplate for |
---|
Subclasses can override this for custom initialization behavior. Gets called after population of this instance's bean properties.
Exception | if initialization fails |
---|