gusto2
gusto2

Reputation: 12075

Message Store supporting rollback?

Using wso2ei-6.4.0 I see it is possible to consume messaging messages (RabbitMQ) either by defining an inbound endpoint or defining a message store.

The required functionality is guaranteed delivery and message ordering. If we use the suggested Guaranteed Delivery with Failover Message Store, we loose the message ordering (as the failed messages are store to the beginning of the queue).

My idea is leveraging JMS transactions. Can I use JMS transaction with the JMS message store or do I need to define a JMS Inbound Endpoint?

Upvotes: 1

Views: 88

Answers (1)

Jan
Jan

Reputation: 653

I must say, I haven't tried it with RabbitMQ. When I created a transactional consumer with ActiveMQ (JMS queue) there were two requirements:

  • Use call with blocking="true" to forward the message
  • Set the SET_ROLLBACK_ONLY property in case of a fault.
  • (don't use OUT_ONLY and HTTP_SC_ACCEPT properties!)

Looking at the sourcecode I suspect that transactions should even work without setting any properties, see the 'startConsumer' function here

Upvotes: 1

Related Questions