Class JmsGatewaySupport
java.lang.Object
org.springframework.jms.core.support.JmsGatewaySupport
- All Implemented Interfaces:
InitializingBean
@Deprecated(since="7.0",
forRemoval=true)
public abstract class JmsGatewaySupport
extends Object
implements InitializingBean
Deprecated, for removal: This API element is subject to removal in a future version.
Convenient superclass 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.
- Since:
- 1.1.1
- Author:
- Mark Pollack
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.commons.logging.LogDeprecated, for removal: This API element is subject to removal in a future version.Logger available to subclasses. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidDeprecated, for removal: This API element is subject to removal in a future version.Invoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.protected JmsTemplatecreateJmsTemplate(jakarta.jms.ConnectionFactory connectionFactory) Deprecated, for removal: This API element is subject to removal in a future version.Create a JmsTemplate for the given ConnectionFactory.final @Nullable jakarta.jms.ConnectionFactoryDeprecated, for removal: This API element is subject to removal in a future version.Return the JMS ConnectionFactory used by the gateway.final @Nullable JmsTemplateDeprecated, for removal: This API element is subject to removal in a future version.Return the JmsTemplate for the gateway.protected voidDeprecated, for removal: This API element is subject to removal in a future version.Subclasses can override this for custom initialization behavior.final voidsetConnectionFactory(jakarta.jms.ConnectionFactory connectionFactory) Deprecated, for removal: This API element is subject to removal in a future version.Set the JMS connection factory to be used by the gateway.final voidsetJmsTemplate(@Nullable JmsTemplate jmsTemplate) Deprecated, for removal: This API element is subject to removal in a future version.Set the JmsTemplate for the gateway.
-
Field Details
-
logger
protected final org.apache.commons.logging.Log loggerDeprecated, for removal: This API element is subject to removal in a future version.Logger available to subclasses.
-
-
Constructor Details
-
JmsGatewaySupport
public JmsGatewaySupport()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
setConnectionFactory
public final void setConnectionFactory(jakarta.jms.ConnectionFactory connectionFactory) Deprecated, for removal: This API element is subject to removal in a future version.Set the JMS connection factory to be used by the gateway. Will automatically create a JmsTemplate for the given ConnectionFactory.- See Also:
-
createJmsTemplate
Deprecated, for removal: This API element is subject to removal in a future version.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.
- Parameters:
connectionFactory- the JMS ConnectionFactory to create a JmsTemplate for- Returns:
- the new JmsTemplate instance
- See Also:
-
getConnectionFactory
Deprecated, for removal: This API element is subject to removal in a future version.Return the JMS ConnectionFactory used by the gateway. -
setJmsTemplate
Deprecated, for removal: This API element is subject to removal in a future version.Set the JmsTemplate for the gateway.- See Also:
-
getJmsTemplate
Deprecated, for removal: This API element is subject to removal in a future version.Return the JmsTemplate for the gateway. -
afterPropertiesSet
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:InitializingBeanInvoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Throws:
IllegalArgumentExceptionBeanInitializationException
-
initGateway
Deprecated, for removal: This API element is subject to removal in a future version.Subclasses can override this for custom initialization behavior. Gets called after population of this instance's bean properties.- Throws:
Exception- if initialization fails
-
JmsTemplateorJmsMessagingTemplate