[rules-users] Looking for simple drools-camel (non-spring) example

Lucas Amador lucazamador at gmail.com
Thu Jun 2 23:59:54 EDT 2011


Hi,
maybe these tests can help you to configure drools-camel without using spring

https://github.com/lucazamador/jbpm5-spring-camel-integration/blob/master/src/test/java/com/wordpress/lucazamador/jbpm/CamelIntegrationTest.java
https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-camel/src/test/java/org/drools/camel/component/DroolsCamelTestSupport.java

Regards,

Lucas

On Wed, Jun 1, 2011 at 2:52 PM, bjh6392 <bhart6392 at hotmail.com> wrote:
> Since the drools pipeline is deprecated, I'm interested in putting together a
> simple example using drools-camel that acts as a pipeline between a JMS
> queue and Drools Fusion.  The starting point would be no
> transformation, just pull pojos out of a queue entrypoint and into a drools
> endpoint using camel.
>
> NOTE: We are not using Spring, so am looking for a java code version of how
> to do this.
>
> However, in the 5.1 or 5.2 M2 and CR distributions, or anywhere else I've
> searched for that matter, I can find very little documentation or code
> examples on drools-camel.  The one snippet I did find:
>
> http://lucazamador.wordpress.com/2010/07/22/drools-camel-integration/
>
> uses some objects from the org.drools.grid.local library that don't seem to
> exist in the 5.2 M2 or CR releases:
>
> LocalConnection connection = new LocalConnection();     <=doesn't exist
> ExecutionNode node = connection.getExecutionNode();    <=doesn't exist
> node.setId("node");
> Context jndiContext = new JndiContext();
> jndiContext.bind("node", node);
> CamelContext camelContext = new DefaultCamelContext(jndiContext);
>
> Can anyone point me to some code snippets, examples, anywhere would be fine,
> test cases, etc.
> Literally hitting a brick wall on the web.  I see the objects in the
> drools-camel library that I know I need to use; DroolsPolicy,
> DroolsEndpoint...
>
> Thanks.
>
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Looking-for-simple-drools-camel-non-spring-example-tp3011916p3011916.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>




More information about the rules-users mailing list