Claus Ibsen created CAMEL-24274:
-----------------------------------
Summary: camel-tui - Send Message should use camel-http to send to
platform-http routes
Key: CAMEL-24274
URL: https://issues.apache.org/jira/browse/CAMEL-24274
Project: Camel
Issue Type: Improvement
Reporter: Claus Ibsen
When the Send Message dialog (F2 > Send Message) selects a route that uses
platform-http as its consumer, clicking Send fails with:
{code}
FailedToCreateProducerException: Failed to create Producer for endpoint:
platform-http:///api/orders?httpMethodRestrict=POST.
Reason: java.lang.UnsupportedOperationException: Producer is not supported
{code}
This is because platform-http is a consumer-only component and does not support
producing.
The TUI should detect when a route uses platform-http and automatically use
camel-http (or camel-vertx-http) as the component to send the test message to
the HTTP endpoint instead. This way, users can seamlessly test their REST API
routes from the Send Message dialog without worrying about which HTTP component
to use.
Alternatively, the route selector in the Send Message dialog could filter out
or visually mark routes that cannot receive messages via their consumer
endpoint (e.g., platform-http, servlet).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)