I&#39;m running 5.2.0.SNAPSHOT here. What I did is to add a new test in JPASingleSessionCommandServiceFactoryTest:<div><br></div><div>    @Test</div><div>    public void testAgents() throws Exception {      </div><div>        KnowledgeAgentImpl kagent1 = ( KnowledgeAgentImpl ) ctx.getBean( &quot;kagent1&quot; );        </div>

<div>    } <br clear="all"><br></div><div>I also have added the agent&#39;s definition into beans.xml:</div><div><br></div><div>&lt;drools:kagent id=&quot;kagent1&quot; kbase=&quot;kbProcessWorkItems&quot; new-instance=&quot;true&quot; /&gt;</div>

<div><br></div><div>The test works. Could you try this same test in 5.1.0? Maybe we are dealing with an already fixed bug. Again, that is why I&#39;m asking you for an isolated test case.</div><div><br></div><div>Best,</div>

<div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>


<br><br><div class="gmail_quote">On Wed, Oct 13, 2010 at 1:38 PM, krkaleraj <span dir="ltr">&lt;<a href="mailto:krkaleraj@gmail.com">krkaleraj@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
Thanks for the response.<br>
<br>
In fact, I have seen these files earlier. Moreover I am just trying to run<br>
the test provided which is not working. The file you mentioned has kagent<br>
but missing persistence configuration. I doubt this issue comes while you<br>
are trying to configure JPA.<br>
<br>
Please configure kagent in beans.xml provided at<br>
org/drools/container/spring/bean/persistence/beans.xml<br>
<br>
I want to configure a kagent for the below kbase configured in that file and<br>
should use in ksession mentioned below.<br>
<br>
&lt;drools:kbase id=&quot;kbProcessWorkItems&quot; node=&quot;node1&quot;&gt;<br>
.....<br>
<br>
&lt;drools:ksession id=&quot;jpaSingleSessionCommandService&quot; type=&quot;stateful&quot;<br>
kbase=&quot;kbProcessWorkItems&quot;&gt;<br>
.....<br>
<br>
Regards,<br>
K R Kaleraj<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Spring-Config-for-Knowledge-Agent-tp1634280p1695637.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Spring-Config-for-Knowledge-Agent-tp1634280p1695637.html</a><br>


</font><div><div></div><div class="h5">Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br></div>