[jboss-jira] [JBoss JIRA] (DROOLS-1566) Unable to lookup Stateless KieSession and KieBase from Remote Java Client

Dhamodharan Krishnan (JIRA) issues at jboss.org
Thu May 18 15:35:00 EDT 2017


    [ https://issues.jboss.org/browse/DROOLS-1566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408484#comment-13408484 ] 

Dhamodharan Krishnan commented on DROOLS-1566:
----------------------------------------------

[~tirelli] 
Could you please let me know if there is an option to lookup Stateless Kie Session.

> 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.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list