Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EAF101084F for ; Wed, 27 Nov 2013 14:21:32 +0000 (UTC) Received: (qmail 15119 invoked by uid 500); 27 Nov 2013 14:21:31 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 15036 invoked by uid 500); 27 Nov 2013 14:21:30 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 15017 invoked by uid 99); 27 Nov 2013 14:21:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Nov 2013 14:21:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Nov 2013 14:21:19 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 924162388A5B for ; Wed, 27 Nov 2013 14:20:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r888276 - in /websites/production/camel/content: book-architecture.html book-in-one-page.html cache/main.pageCache camel-2130-release.html component-list.html components.html optaplanner.html transport.html uris.html Date: Wed, 27 Nov 2013 14:20:56 -0000 To: commits@camel.apache.org From: buildbot@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131127142056.924162388A5B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: buildbot Date: Wed Nov 27 14:20:55 2013 New Revision: 888276 Log: Production update by buildbot for camel Added: websites/production/camel/content/optaplanner.html Modified: websites/production/camel/content/book-architecture.html websites/production/camel/content/book-in-one-page.html websites/production/camel/content/cache/main.pageCache websites/production/camel/content/camel-2130-release.html websites/production/camel/content/component-list.html websites/production/camel/content/components.html websites/production/camel/content/transport.html websites/production/camel/content/uris.html Modified: websites/production/camel/content/book-architecture.html ============================================================================== --- websites/production/camel/content/book-architecture.html (original) +++ websites/production/camel/content/book-architecture.html Wed Nov 27 14:20:55 2013 @@ -274,17 +274,13 @@ dns:operation[?options] ]]> To lookup domain information and run DNS queries using DNSJava Disruptor / camel-disruptor
- -
To provide the implementation of SEDA which is based on disruptor [Disruptor VM] / camel-disruptor + To provide the implementation of SEDA which is based on disruptor EJB / camel-ejb
- -
... EJB / camel-ejb -
-
Uses the Bean Binding to bind message exchanges to EJBs. It works like the Bean component but just for accessing EJBs. Supports EJB 3.0 onwards. ElasticSearch / camel-elasticsearch @@ -572,12 +568,22 @@ netty:<tcp|udp>//host[:port][?opti - Netty HTTP server and client using the Netty project Pax-Logging / camel-paxlogging + Netty HTTP server and client using the Netty project OptaPlanner / camel-optaplanner +
+ +
Solves the planning problem contained in a message with OptaPlanner. Pax-Logging / camel-paxlogging
-
Receiving Pax-Logging events in OSGi POP3 / camel-mail + Receiving Pax-Logging events in OSGi + + + +
+
POP3 / camel-mail
To lookup domain information and run DNS queries using DNSJava
Disruptor / camel-disruptor
- -
To provide the implementation of SEDA which is based on disruptor
[Disruptor VM] / camel-disruptor -
- -
...
EJB / camel-ejb + To provide the implementation of SEDA which is based on disruptor
EJB / camel-ejb
-
Uses the Bean Binding to bind message exchanges to EJBs. It works like the Bean component but just for accessing EJBs. Supports EJB 3.0 onwards.
ElasticSearch / camel-elasticsearch @@ -986,12 +982,22 @@ netty:<tcp|udp>//host[:port][?opti - Netty HTTP server and client using the Netty project
Pax-Logging / camel-paxlogging + Netty HTTP server and client using the Netty project
OptaPlanner / camel-optaplanner +
+ +
Solves the planning problem contained in a message with OptaPlanner.
Pax-Logging / camel-paxlogging
-
Receiving Pax-Logging events in OSGi
POP3 / camel-mail + Receiving Pax-Logging events in OSGi
+
+ + +
+
POP3 / camel-mail
To lookup domain information and run DNS queries using DNSJava
Disruptor / camel-disruptor
- -
To provide the implementation of SEDA which is based on disruptor
[Disruptor VM] / camel-disruptor -
- -
...
EJB / camel-ejb + To provide the implementation of SEDA which is based on disruptor
EJB / camel-ejb
-
Uses the Bean Binding to bind message exchanges to EJBs. It works like the Bean component but just for accessing EJBs. Supports EJB 3.0 onwards.
ElasticSearch / camel-elasticsearch @@ -541,12 +537,22 @@ netty:<tcp|udp>//host[:port][?opti - Netty HTTP server and client using the Netty project
Pax-Logging / camel-paxlogging + Netty HTTP server and client using the Netty project
OptaPlanner / camel-optaplanner +
+ +
Solves the planning problem contained in a message with OptaPlanner.
Pax-Logging / camel-paxlogging
-
Receiving Pax-Logging events in OSGi
POP3 / camel-mail + Receiving Pax-Logging events in OSGi
+
+ + +
+
POP3 / camel-mail
To lookup domain information and run DNS queries using DNSJava
Disruptor / camel-disruptor
- -
To provide the implementation of SEDA which is based on disruptor
[Disruptor VM] / camel-disruptor + To provide the implementation of SEDA which is based on disruptor
EJB / camel-ejb
- -
...
EJB / camel-ejb -
-
Uses the Bean Binding to bind message exchanges to EJBs. It works like the Bean component but just for accessing EJBs. Supports EJB 3.0 onwards.
ElasticSearch / camel-elasticsearch @@ -548,12 +544,22 @@ netty:<tcp|udp>//host[:port][?opti - Netty HTTP server and client using the Netty project
Pax-Logging / camel-paxlogging + Netty HTTP server and client using the Netty project
OptaPlanner / camel-optaplanner +
+ +
Solves the planning problem contained in a message with OptaPlanner.
Pax-Logging / camel-paxlogging
-
Receiving Pax-Logging events in OSGi
POP3 / camel-mail + Receiving Pax-Logging events in OSGi
+
+ + +
+
POP3 / camel-mail
+ + + + + + + + + + + + + + + + + + + Apache Camel: OptaPlanner + + + +
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + +
+

OptaPlanner

+

Available as of Camel 2.13

+ +

The optaplanner: component solves the planning problem contained in a message with OptaPlanner.
+For example: feed it an unsolved Vehicle Routing problem and it solves it.

+ +

Maven users will need to add the following dependency to their pom.xml for this component:

+
+ +
+ +

URI format

+ +
+ +
+

The solverConfig is the classpath-local URI of the solverConfig, for example /org/foo/barSolverConfig.xml.

+ +

You can append query options to the URI in the following format, ?option=value&option=value&...

+ +

Options

+ +

No options supported yet.

+ +

Message Headers

+ +

No message headers supported yet.

+ +

Message Body

+ +

Camel takes the planning problem for the IN body, solves it and returns it on the OUT body.
+The IN body object must implement the optaplanner interface Solution.

+ +

Termination

+ +

The solving will take as long as specified in the solverConfig.

+ +
+ +
+ +

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:

+ +
+ +
+ +

Expose OptaPlanner as a REST service:

+ +
+ +
+ + +

See Also

+ +
+
+ +
+ + +
+
+
+
+
+
+ +
+
+
+© 2004-2011 The Apache Software Foundation. +
+Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. +
+Graphic Design By Hiram +
+ + + + + + + + Modified: websites/production/camel/content/transport.html ============================================================================== --- websites/production/camel/content/transport.html (original) +++ websites/production/camel/content/transport.html Wed Nov 27 14:20:55 2013 @@ -254,17 +254,13 @@ dns:operation[?options] ]]>
To lookup domain information and run DNS queries using DNSJava
Disruptor / camel-disruptor
- -
To provide the implementation of SEDA which is based on disruptor
[Disruptor VM] / camel-disruptor + To provide the implementation of SEDA which is based on disruptor
EJB / camel-ejb
- -
...
EJB / camel-ejb -
-
Uses the Bean Binding to bind message exchanges to EJBs. It works like the Bean component but just for accessing EJBs. Supports EJB 3.0 onwards.
ElasticSearch / camel-elasticsearch @@ -552,12 +548,22 @@ netty:<tcp|udp>//host[:port][?opti - Netty HTTP server and client using the Netty project
Pax-Logging / camel-paxlogging + Netty HTTP server and client using the Netty project
OptaPlanner / camel-optaplanner +
+ +
Solves the planning problem contained in a message with OptaPlanner.
Pax-Logging / camel-paxlogging
-
Receiving Pax-Logging events in OSGi
POP3 / camel-mail + Receiving Pax-Logging events in OSGi
+
+ + +
+
POP3 / camel-mail
To lookup domain information and run DNS queries using DNSJava
Disruptor / camel-disruptor
- -
To provide the implementation of SEDA which is based on disruptor
[Disruptor VM] / camel-disruptor + To provide the implementation of SEDA which is based on disruptor
EJB / camel-ejb
- -
...
EJB / camel-ejb -
-
Uses the Bean Binding to bind message exchanges to EJBs. It works like the Bean component but just for accessing EJBs. Supports EJB 3.0 onwards.
ElasticSearch / camel-elasticsearch @@ -550,12 +546,22 @@ netty:<tcp|udp>//host[:port][?opti - Netty HTTP server and client using the Netty project
Pax-Logging / camel-paxlogging + Netty HTTP server and client using the Netty project
OptaPlanner / camel-optaplanner +
+ +
Solves the planning problem contained in a message with OptaPlanner.
Pax-Logging / camel-paxlogging
-
Receiving Pax-Logging events in OSGi
POP3 / camel-mail + Receiving Pax-Logging events in OSGi
+
+ + +
+
POP3 / camel-mail