Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

NOTE While the Solver is solving, it will effectively hog that camel thread. Future improvements might include solving in a separate thread:

  • Asynchronous solving: 1 request starts the solving and registers a callback. When the Solver terminates, the best Solution is returned through the callback.
  • 2 phase request solving: 1 request starts the solving on a separate thread. Another request (with an id to the first request) terminates the Solver with Solver.terminateEarly() and returns the best Solution.

Samples

Solve an planning problem that's on the ActiveMQ queue with OptaPlanner:

...

Code Block
from("cxfrs:bean:rsServer?bindingStyle=SimpleConsumer")
  .to("optaplanner:/org/foo/barSolverConfig.xml");
Include Page
CAMEL:Endpoint See AlsoCAMEL:
Endpoint See Also