[rules-users] Can we make our kbase object available from one context to another context (one application to another webservice)

Michael Anstis michael.anstis at gmail.com
Thu Dec 15 11:55:09 EST 2011


OK, let me step back.

Do you mean contexts of page, request and application in a single
web-application, or different contexts (i.e. applications) on a web-server?

If the latter why would you want to do that? Isn't it likely different
applications require different KnowledgeBases. In this instance too I'd
recommend exposing it as web-service that other contexts can call into.
AFAIK drools-server provides for this (Esteban or Salaboy may know more).
This would allow you to scale horizontally if your consuming contexts' load
increased.

If you mean to share a KnowledgeBase across different HTTP requests then I
believe the common pattern is to store it in application scope and create
different stateless sessions for each request.

On 15 December 2011 16:42, srinivasasanda <srinivasasanda at gmail.com> wrote:

>
> Hi Manstris
>
> is there any api in drools to make its kbase object to available to any
> context
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Can-we-make-our-kbase-object-available-from-one-context-to-another-context-one-application-to-anothe-tp3588689p3589172.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111215/dda9bcfa/attachment.html 


More information about the rules-users mailing list