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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content