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 method.
setConnectionFactory, setJmsTemplate, createJmsTemplate, org.springframework.jms.core.JmsTemplate
| Modifier and Type | Field and Description |
|---|---|
| private JmsTemplate | |
| protected final Log | logger
Logger available to subclasses. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | afterPropertiesSet()
Implements org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set. |
| protected JmsTemplate | Returns: the new JmsTemplate instancethe JMS ConnectionFactory to create a JmsTemplate for connectionFactory)Create a JmsTemplate for the given ConnectionFactory. |
| public final ConnectionFactory | |
| public final JmsTemplate | |
| protected void | |
| public final void | setConnectionFactory(ConnectionFactory connectionFactory)
Set the JMS connection factory to be used by the gateway. |
| public final void |
| jmsTemplate | back to summary |
|---|---|
| private JmsTemplate jmsTemplate
| |
| logger | back to summary |
|---|---|
| protected final Log logger Logger available to subclasses. | |
| JmsGatewaySupport | back to summary |
|---|---|
| public JmsGatewaySupport() | |
| afterPropertiesSet | back to summary |
|---|---|
| public final void afterPropertiesSet() throws IllegalArgumentException, BeanInitializationException Implements org. Doc from org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
| |
| createJmsTemplate | back to summary |
|---|---|
| protected JmsTemplate createJmsTemplate(ConnectionFactory connectionFactory) 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.
| |
| getConnectionFactory | back to summary |
|---|---|
| public final ConnectionFactory getConnectionFactory() Return the JMS ConnectionFactory used by the gateway.
| |
| getJmsTemplate | back to summary |
|---|---|
| public final JmsTemplate getJmsTemplate() Return the JmsTemplate for the gateway.
| |
| initGateway | back to summary |
|---|---|
| protected void initGateway() throws Exception Subclasses can override this for custom initialization behavior. Gets called after population of this instance's bean properties.
| |
| setConnectionFactory | back to summary |
|---|---|
| public final void setConnectionFactory(ConnectionFactory connectionFactory) Set the JMS connection factory to be used by the gateway. Will automatically create a JmsTemplate for the given ConnectionFactory. | |
| setJmsTemplate | back to summary |
|---|---|
| public final void setJmsTemplate(JmsTemplate jmsTemplate) Set the JmsTemplate for the gateway. | |