|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.context.IntegrationObjectSupport org.springframework.integration.jms.AbstractJmsTemplateBasedAdapter
public abstract class AbstractJmsTemplateBasedAdapter
Base class for adapters that delegate to a JmsTemplate
.
Field Summary |
---|
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport |
---|
logger |
Constructor Summary | |
---|---|
AbstractJmsTemplateBasedAdapter()
No-arg constructor provided for convenience when configuring with setters. |
|
AbstractJmsTemplateBasedAdapter(javax.jms.ConnectionFactory connectionFactory,
javax.jms.Destination destination)
|
|
AbstractJmsTemplateBasedAdapter(javax.jms.ConnectionFactory connectionFactory,
String destinationName)
|
|
AbstractJmsTemplateBasedAdapter(JmsTemplate jmsTemplate)
|
Method Summary | |
---|---|
protected void |
configureMessageConverter(JmsTemplate jmsTemplate)
|
protected JmsTemplate |
getJmsTemplate()
|
void |
onInit()
Subclasses may implement this for initialization logic. |
void |
setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
|
void |
setDeliveryMode(int deliveryMode)
|
void |
setDeliveryPersistent(boolean deliveryPersistent)
|
void |
setDestination(javax.jms.Destination destination)
|
void |
setDestinationName(String destinationName)
|
void |
setDestinationResolver(DestinationResolver destinationResolver)
|
void |
setExplicitQosEnabled(boolean explicitQosEnabled)
|
void |
setExtractPayload(boolean extractPayload)
Specify whether the payload should be extracted from each received JMS Message to be used as the Spring Integration Message payload. |
void |
setHeaderMapper(JmsHeaderMapper headerMapper)
|
void |
setMessageConverter(MessageConverter messageConverter)
Provide a MessageConverter strategy to use for converting
between Spring Integration Messages and JMS Messages. |
void |
setPriority(int priority)
|
void |
setPubSubDomain(boolean pubSubDomain)
|
void |
setTimeToLive(long timeToLive)
|
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
---|
afterPropertiesSet, getBeanFactory, getChannelResolver, getComponentName, getComponentType, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setTaskScheduler, toString, writeMessageHistory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractJmsTemplateBasedAdapter(JmsTemplate jmsTemplate)
public AbstractJmsTemplateBasedAdapter(javax.jms.ConnectionFactory connectionFactory, javax.jms.Destination destination)
public AbstractJmsTemplateBasedAdapter(javax.jms.ConnectionFactory connectionFactory, String destinationName)
public AbstractJmsTemplateBasedAdapter()
Method Detail |
---|
public void setExtractPayload(boolean extractPayload)
The default value is true
. To force creation of Spring
Integration Messages whose payload is the actual JMS Message, set this
to false
.
public void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
public void setDestination(javax.jms.Destination destination)
public void setDestinationName(String destinationName)
public void setPubSubDomain(boolean pubSubDomain)
public void setMessageConverter(MessageConverter messageConverter)
MessageConverter
strategy to use for converting
between Spring Integration Messages and JMS Messages.
The default is a DefaultMessageConverter
that delegates to
a SimpleMessageConverter
.
public void setDestinationResolver(DestinationResolver destinationResolver)
public void setHeaderMapper(JmsHeaderMapper headerMapper)
public void setExplicitQosEnabled(boolean explicitQosEnabled)
JmsTemplate.setExplicitQosEnabled(boolean)
public void setTimeToLive(long timeToLive)
JmsTemplate.setTimeToLive(long)
public void setDeliveryMode(int deliveryMode)
JmsTemplate.setDeliveryMode(int)
public void setDeliveryPersistent(boolean deliveryPersistent)
JmsTemplate.setDeliveryPersistent(boolean)
public void setPriority(int priority)
JmsTemplate.setPriority(int)
protected JmsTemplate getJmsTemplate()
public void onInit()
IntegrationObjectSupport
onInit
in class IntegrationObjectSupport
protected void configureMessageConverter(JmsTemplate jmsTemplate)
|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |