@Configuration @EnableConfigurationProperties(value=AmqProperties.class) public class ActiveMQConfiguration extends java.lang.Object
This components used in spring integration part backend. Queue configured with AmqProperties properties.
| Constructor and Description |
|---|
ActiveMQConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.activemq.spring.ActiveMQConnectionFactory |
amqConnectionFactory()
The redelivery policy is ignored (except of maximumRedeliveries, -1 is infinite redelivery) because redelivery
is handled by the consumer which needs to be cached to ensure the previous delay is taken into account.
|
org.springframework.jms.connection.SingleConnectionFactory |
connectionFactory()
Set up the connection factory.
|
org.springframework.jms.connection.JmsTransactionManager |
jmsTransactionManager() |
@Bean public org.apache.activemq.spring.ActiveMQConnectionFactory amqConnectionFactory()
The default Dead Letter Queue in ActiveMQ is called ActiveMQ.DLQ; in case of maximumRedeliveries greater than 0, all undeliverable messages will get sent to this queue (configuration of deadLetterStrategy on broker is ignored).
@Bean public org.springframework.jms.connection.SingleConnectionFactory connectionFactory()
@Bean public org.springframework.jms.connection.JmsTransactionManager jmsTransactionManager()