PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, April 14, 2022

[FIXED] How to fix several input per route in Camel 3.X.X?

 April 14, 2022     apache-camel, apache-camel-3, migration     No comments   

Issue

I have a route that looks like this:

from(URL_A)
  .from(URL_B)
  .to(URL_C)
  .process(...)
  // logging
  .to(URL_D)

This route works perfectly in Camel 2.X.X but not in 3.7.X

The error message I get:

Only one input is allowed per route. Cannot accept input: From[direct:ABCD]

I checked the migration guide, but I cannot get how to migrate this sort of route.

Do you have any idea how to tackle it further?


Solution

I think you can use direct component: https://camel.apache.org/components/3.4.x/direct-component.html

For example:

from(URL_A)
  .to(direct:collector)
from(URL_B)
  .to(direct:collector)
  
from(direct:collector)
  .to(URL_C)
  .process(...)
  // logging
  .to(URL_D)


Answered By - Stepan Shcherbakov
Answer Checked By - Senaida (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing