hi there!
i am using drools 5.1 snapshot release.

i have built up the following application:

* first the source files are parsed and a knowledgebase is created
* the application has multiple service-objects
* each service object gets a reference to the same knowledgebase
* each service creates a StatefulKnowledgeSession in its constructor,
  and then adds its global variables to the session.
* after all services are created, the startService method of each service
  is called.
* within this method there is the following code:

new Thread(
                new Runnable() 
                {
                          public void run() 
                          {
                            ksession.fireUntilHalt();
                          }
                }
).start();
ksession.startProcess(servicename, params);

the problem is: if i run only 1 service everything works fine. when running 
more than 1 services i cannot access the global variables from my rules or 
processes anymore. anyone has an idea whats the reason for that behavior?
Thanks a lot in advance!
tom
-- 
Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to