Do you receive any error messages?<br>
<br>Did you look at the example I linked to last time?<br><br>Change-sets need a UID and PWD in them (as per the example), however IIRC the one generated by Guvnor does not include them.<br><br>There have been various work-arounds discussed on this mailing list before. Please feel free to seach for them.<br>
<br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 18 October 2012 13:27, Sai Nadh <span dir="ltr">&lt;<a href="mailto:adisya.sai@gmail.com" target="_blank">adisya.sai@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 clear="all"><div>How can i access the rules (which i have created in Drools Guvnor) to my java application?</div><div>
plz give me some example....</div><div><br></div><div>i have tried with below code, is there any mistakes?? if yes pls mention....</div>

<div><br></div><div><br></div><div><div><span style="background-color:rgb(255,255,102)">private static KnowledgeBase createKnowledgeBase() {</span></div><div><span style="background-color:rgb(255,255,102)"><br></span></div>

<div><span style="background-color:rgb(255,255,102)"><span style="white-space:pre-wrap">                </span>KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();</span></div>
<div><span style="background-color:rgb(255,255,102)"><br></span></div><div><span style="background-color:rgb(255,255,102)"><span style="white-space:pre-wrap">                </span>KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( &quot;MyAgent&quot; );</span></div>

<div><span style="background-color:rgb(255,255,102)"><br></span></div><div><span style="background-color:rgb(255,255,102)"><span style="white-space:pre-wrap">                </span>KnowledgeAgentConfiguration kaconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();</span></div>


<div><span style="background-color:rgb(255,255,102)"><br></span></div><div><span style="background-color:rgb(255,255,102)"><span style="white-space:pre-wrap">                </span>kaconf.setProperty( &quot;drools.agent.scanDirectories&quot;, &quot;false&quot; ); </span></div>

<div><span style="background-color:rgb(255,255,102)"><br></span></div><div><span style="background-color:rgb(255,255,102)"><span style="white-space:pre-wrap">                </span>kagent.applyChangeSet( ResourceFactory.newUrlResource(&quot;<a href="http://localhost:8080/guvnor/rest/packages/ProductPositionAlert/assets/change-set.xml/source" target="_blank">http://localhost:8080/guvnor/rest/packages/ProductPositionAlert/assets/change-set.xml/source</a>&quot;) ); </span></div>


<div><span style="background-color:rgb(255,255,102)"><br></span></div><div><span style="background-color:rgb(255,255,102)"><span style="white-space:pre-wrap">                </span>return   kbase;</span></div><div><span style="background-color:rgb(255,255,102)"><br>

</span></div><div><span style="background-color:rgb(255,255,102)"><span style="white-space:pre-wrap">        </span>}</span></div></div><div><br></div><div><br>
</div><div><br></div><div>my guvnor package sanpshot details are</div><div><br></div><div><img src="cid:ii_13a73d66611bee78" alt="Inline image 2"><br></div><div><br></div><div><br></div><div>thanks in advance</div><span class="HOEnZb"><font color="#888888">-- <br>

<div><b>Regards</b></div><div><font size="4" color="#6600cc" face="garamond, serif"><b> sainadh</b></font></div><div><p style="text-align:justify"><font size="4" color="#6666cc" face="comic sans ms, sans-serif"><span style="line-height:14px"> </span></font></p>


</div><div></div><div><font size="4" color="#000066" face="garamond, serif"><b> </b></font></div><br><br><br>
</font></span><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>
<br></blockquote></div><br>