Sending message from HTTP endpoint to JMS(将消息从 HTTP 端点发送到 JMS)
问题描述
I am trying to have a camel route, which would accept a payload on a http endpoint and then write that payload to a JMS queue.
The route that I have so far is below. But an empty message gets delivered to the jms queue. A message gets there, but it has no body.
Heres the route:
Heres the payload that I'm sending into to 'http://0.0.0.0:8050/add/Customer
' endpoint:
Any inputs on why the message body is not being written to the jms queue? Thanks...
Your routes worked as expected. I tested it with following setup:
I tested the route using the org.apache.camel.spring.Main
helper class:
This lead to following output:
这篇关于将消息从 HTTP 端点发送到 JMS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!