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

Solution Unverified - Updated -

Issue

  • 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.

Environment

  • Red Hat JBoss Fuse Service Works
    • 6.0.0

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.