]
Edson Tirelli resolved DROOLS-1566.
-----------------------------------
Resolution: Rejected
It is possible to invoke stateless sessions from the java client API for the kie-server.
Here is an example:
Unable to lookup Stateless KieSession and KieBase from Remote Java
Client
-------------------------------------------------------------------------
Key: DROOLS-1566
URL:
https://issues.jboss.org/browse/DROOLS-1566
Project: Drools
Issue Type: Bug
Components: kie server
Affects Versions: 6.5.0.Final
Reporter: Dhamodharan Krishnan
Assignee: Edson Tirelli
The rules that I define in Stateful or the default KieSession and KieBase are picked up
the Remote Java client. The rules that I define in Stateless KieSessions or KieBase are
not picked up.
I am not able to define rules in Stateless Kie Session. And I get duplicate data as part
of my response as the facts injected into the Working memory seems to get bundled.
For eg, if a response POJO is supposed to contain 3 inner objects as part of its
Response.
Response.java
{
List<Person> personsList;
}
Lets assume that the response should contain 3 matching persons as part of its response.
But each time, I hit the Kie Container from the Remote Java client, the results get
bundled and it goes in Arithmetic progression as
3 , 6, 9, 12, 15, .... and so on until I restart my KieServer instance itself.
Thats where I am not clear on how to configure the KieContainer to make sure the results
are not bundled.
Imagine, if I am going to call the Kie Container from different instances, it may even be
giving wrong results .
As it returns the stocked up data.
Hope you understand my problem.
Thats where I try to configure Stateless KieSession and map my package to that.
But the remote Java client is not able to pick the Stateless KieSession.
It picks only Stateful ones.