Camel route received exchange body as null, while consuming file from JMS.

Solution Unverified - Updated -


  • How to receive or interpret a file from JMS, Using Camel?
  • In the apache camel documentation, it said that if a File is send a to a JMS queue, Camel convert the file into a ByteMessage, and the consumer will expect a byte[] data type to start its route. It's that correct?
  • When performed testing, expecting byte[] data type from the consumer route instead a file, and the exchange body comes null.


  • Red Hat JBoss Fuse Service Works
    • 6.0.0

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