How can I send persistent messages with the Camel Producer Template?

Solution Verified - Updated -

Issue

I am sending messages to an ActiveMQ queue with the producer template as follows, however when I restart the broker my messages are gone.

producer.sendBody("Hello World");

How can I send persistent messages with the Camel Producer Template?

Environment

  • JBoss Fuse 6.2.1
  • Camel 2.15.1.redhat-621084

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.