Spring rabbitMQ - transactions and transaction manager

Viewed 6939

Iv'e heard all over the internet that rabbitMQ does not support transactions.

Now, that said, spring framework provides us with a rabbit transaction manager:

here is a snippet of its definition:

<bean id="rabbitTransactionManager"
    class="org.springframework.amqp.rabbit.transaction.RabbitTransactionManager">
    <property name="connectionFactory" ref="connectionFactory" />
</bean>

So my question is:

1) does using @transactional annotation on a method with the transaction manager actually guarantees a transaction effect? 2) how does spring managed to achieve transaction while rabbit is non transnational ?

1 Answers
Related