You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Guillaume Nodet <gn...@gmail.com> on 2007/02/07 11:42:00 UTC

Re: servicemix 3.1 - migration from drools2 --> drools - how to forward?

One of the reason why the new servicemix-drools SE
does not make such a distinction is because it was a bit
difficult to understand / explain.

The servicemix-drools component can act as a simple router or
a real service (I have update the
http://cwiki.apache.org/SM/servicemix-drools.html a bit)

On 1/29/07, Fabian Crabus <fa...@gmail.com> wrote:
> Hi,
>
> I had a look at the new drools component- but I still have difficulties
> understanding the philosophical difference between forward
> (which was part of the old implementation) and route
> (that is supported now).
>
> Can anyone explain it? And perhaps an example of how
> to route to another service within a rulebase would be great.
>
> And why does the new drools component differ in that aspect
> from the old one- besides being drools 3.x compatible?
>
> Somewhat puzzled :),
> Fabian
>
> On 1/26/07, roman.stumm <ro...@agimatec.de> wrote:
> >
> > Hello,
> >
> > we have an application that uses ServiceMix3.0 with Drools2.1. In our
> > ruleBase we use the following statement under <java:consequence> to forward
> > to another service:
> >
> > jbi.forwardToService("http://www.example.com/appl/", "jmsSenderComponent");
> > (jbi is of type org.apache.servicemix.components.drools.JbiHelper)
> >
> > I have migrated the rulebase-file to new drools3.0.3 syntax and configured
> > servicemix3.1-snapshot to use DroolsEndpoint in
> > org.apache.servicemix.drools.
> >
> > Unfortunately, I have not yet figured out how to migrate the
> > forwardToService() method for the new environment. The instance of "jbi" is
> > now of type org.apache.servicemix.drools.model.JbiHelper, but the
> > forward()-method in this type is not available (commented out, not
> > implemented?).
> >
> > So my question is:
> > - Is a forward-feature already available for drools3/servicemix3.1?
> > - What do I have to write to forward in the rulebase-file instead of the
> > forwardToService() method?
> >   (What format is the URI, what is the name of the method to use? - Hint:
> > "jmsSenderComponent" is the componentName of another activationSpec in the
> > jbi container.)
> >
> > Can anyone give me a hint?
> >
> > Thanks!
> >
> > Best regards
> >     Roman
> >
> >
> >
> >
> > --
> > View this message in context: http://www.nabble.com/servicemix-3.1---migration-from-drools2---%3E-drools---how-to-forward--tf3122041s12049.html#a8650255
> > Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >
> >
>


-- 
Cheers,
Guillaume Nodet
------------------------
Architect, LogicBlaze (http://www.logicblaze.com/)
Blog: http://gnodet.blogspot.com/