<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">Download the drools source code, there are loads of examples in the drools-decisiontables unit tests.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">Thomas<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:
&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;
font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org]
<b>On Behalf Of </b>amit bhardwaj<br>
<b>Sent:</b> 19 June 2010 20:21<br>
<b>To:</b> rules-users@lists.jboss.org<br>
<b>Subject:</b> Re: [rules-users] rules-users Digest, Vol 43, Issue 117<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Is anyone have working example with drool decision table. Please provide the example<o:p></o:p></p>
<div>
<p class="MsoNormal">On Sat, Jun 19, 2010 at 11:08 PM, &lt;<a href="mailto:rules-users-request@lists.jboss.org">rules-users-request@lists.jboss.org</a>&gt; wrote:<o:p></o:p></p>
<p class="MsoNormal">Send rules-users mailing list submissions to<br>
&nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
&nbsp; &nbsp; &nbsp; &nbsp;<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
&nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:rules-users-request@lists.jboss.org">rules-users-request@lists.jboss.org</a><br>
<br>
You can reach the person managing the list at<br>
&nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:rules-users-owner@lists.jboss.org">rules-users-owner@lists.jboss.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of rules-users digest...&quot;<br>
<br>
<br>
Today's Topics:<br>
<br>
&nbsp; 1. Re: MVEL strict mode -- when, why? (Barry Kaplan)<br>
&nbsp; 2. Re: JBoss password required to connect a PKG via a Agent<br>
&nbsp; &nbsp; &nbsp;(Jervisliu)<br>
&nbsp; 3. Connection with Active Directory multiple organizational<br>
&nbsp; &nbsp; &nbsp;units (G3)<br>
&nbsp; 4. Re: [Knowledge Agent Question (Mahalakshmi)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 19 Jun 2010 09:08:06 -0700 (PDT)<br>
From: Barry Kaplan &lt;<a href="mailto:groups1@memelet.com">groups1@memelet.com</a>&gt;<br>
Subject: Re: [rules-users] MVEL strict mode -- when, why?<br>
To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
Message-ID: &lt;<a href="mailto:1276963686581-907803.post@n3.nabble.com">1276963686581-907803.post@n3.nabble.com</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
<br>
Hey Edson,<br>
<br>
If I don't explicitly set strict to false my rules fail to compile. I will<br>
create a simple example. Or maybe this two phase is post 5.0.1?<br>
<br>
-barry<br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/MVEL-strict-mode-when-why-tp95666p907803.html" target="_blank">
http://drools-java-rules-engine.46999.n3.nabble.com/MVEL-strict-mode-when-why-tp95666p907803.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sun, 20 Jun 2010 00:47:43 &#43;0800<br>
From: Jervisliu &lt;<a href="mailto:jliu@redhat.com">jliu@redhat.com</a>&gt;<br>
Subject: Re: [rules-users] JBoss password required to connect a PKG<br>
&nbsp; &nbsp; &nbsp; &nbsp;via a Agent<br>
To: Rules Users List &lt;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:4C1CF4AF.5010503@redhat.com">4C1CF4AF.5010503@redhat.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
You can include username/pwd in your ChangeSet, see below:<br>
<br>
&nbsp; &nbsp; &nbsp; &nbsp;&lt;add&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;resource<br>
source='<a href="http://localhost:8081/jboss-brms/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST" target="_blank">http://localhost:8081/jboss-brms/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST</a>'<br>
type='PKG' basicAuthentication='enabled' username='admin' password='pwd'/&gt;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/add&gt;<br>
<br>
Details can be found from<br>
<a href="http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/compiler/xml/changeset/ChangeSetTest.java" target="_blank">http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/compiler/xml/changeset/ChangeSetTest.java</a><br>
<br>
Cheers,<br>
Jervis<br>
<br>
mmquelo massi wrote:<br>
&gt; Hi everybody,<br>
&gt;<br>
&gt; I am using Guvnor 501M2 on JBoss standalone.<br>
&gt;<br>
&gt; I am accessing the PKG resource from my java code as follows:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; ResourceBundle resourceBundle =<br>
&gt; &nbsp; &nbsp; ResourceBundle.getBundle(&quot;guvnoragent&quot;); Properties props = new<br>
&gt; &nbsp; &nbsp; Properties();<br>
&gt; &nbsp; &nbsp; props.setProperty(&quot;drools.resource.scanner.interval&quot;,<br>
&gt; &nbsp; &nbsp; resourceBundle.getString(&quot;poll&quot;)); ResourceChangeScanner service =<br>
&gt; &nbsp; &nbsp; ResourceFactory.getResourceChangeScannerService();<br>
&gt; &nbsp; &nbsp; ResourceChangeScannerConfiguration rconf =<br>
&gt; &nbsp; &nbsp; service.newResourceChangeScannerConfiguration(props);<br>
&gt; &nbsp; &nbsp; service.configure( rconf ); //Agent Conf<br>
&gt; &nbsp; &nbsp; KnowledgeAgentConfiguration aconf =<br>
&gt; &nbsp; &nbsp; KnowledgeAgentFactory.newKnowledgeAgentConfiguration();<br>
&gt; &nbsp; &nbsp; aconf.setProperty(&quot;drools.agent.scanDirectories&quot;,<br>
&gt; &nbsp; &nbsp; resourceBundle.getString(&quot;scanDir&quot;));<br>
&gt; &nbsp; &nbsp; aconf.setProperty(&quot;drools.agent.scanResources&quot;,<br>
&gt; &nbsp; &nbsp; resourceBundle.getString(&quot;scanRsc&quot;)); BufferedReader bfr=null; try<br>
&gt; &nbsp; &nbsp; { bfr = new BufferedReader(new FileReader(new<br>
&gt; &nbsp; &nbsp; File(&quot;......Changeset.xml&quot;))); } catch (Exception e) { ... }<br>
&gt; &nbsp; &nbsp; //Agent configurato e con Packages guvnor aggiunti KnowledgeAgent<br>
&gt; &nbsp; &nbsp; kagent = KnowledgeAgentFactory.newKnowledgeAgent(&quot;AgentPOC&quot;,<br>
&gt; &nbsp; &nbsp; aconf); Resource csReader =<br>
&gt; &nbsp; &nbsp; ResourceFactory.newReaderResource(bfr);<br>
&gt; &nbsp; &nbsp; kagent.applyChangeSet(csReader);&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;<br>
&gt;<br>
&gt; Here I get the following exception:<br>
&gt;<br>
&gt; &nbsp; &nbsp; *Caused by: java.io.IOException: Server returned HTTP response<br>
&gt; &nbsp; &nbsp; code: 401 for URL:<br>
&gt; &nbsp; &nbsp; <a href="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/Test/LATEST*" target="_blank">
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/Test/LATEST*</a><br>
&gt; &nbsp; &nbsp; at<br>
&gt; &nbsp; &nbsp; sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1187)<br>
&gt; &nbsp; &nbsp; at org.drools.io.impl.UrlResource.grabStream(UrlResource.java:194)<br>
&gt; &nbsp; &nbsp; at<br>
&gt; &nbsp; &nbsp; org.drools.io.impl.UrlResource.getInputStream(UrlResource.java:130)<br>
&gt; &nbsp; &nbsp; at<br>
&gt; &nbsp; &nbsp; org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:574)<br>
&gt; &nbsp; &nbsp; ... 7 more [2010:06:160 19:06:671:debug] KnowledgeAgent obtaining<br>
&gt; &nbsp; &nbsp; pkg resource=[UrlResource<br>
&gt; &nbsp; &nbsp; path='<a href="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/Test/LATEST" target="_blank">http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/Test/LATEST</a>']<br>
&gt; &nbsp; &nbsp; [2010:06:160 19:06:671:exception] java.lang.RuntimeException:<br>
&gt; &nbsp; &nbsp; KnowledgeAgent exception while trying to deserialize<br>
&gt; &nbsp; &nbsp; KnowledgeDefinitionsPackage at<br>
&gt; &nbsp; &nbsp; org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:829)<br>
&gt; &nbsp; &nbsp; at<br>
&gt; &nbsp; &nbsp; org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:627)<br>
&gt; &nbsp; &nbsp; at<br>
&gt; &nbsp; &nbsp; org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:513)<br>
&gt; &nbsp; &nbsp; at<br>
&gt; &nbsp; &nbsp; org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:145)<br>
&gt; &nbsp; &nbsp; at<br>
&gt; &nbsp; &nbsp; org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:130)<br>
&gt; &nbsp; &nbsp; at<br>
&gt; &nbsp; &nbsp; com.reply.alitalia.mm.poc.engine.RuleService.exeRules(RuleService.java:74)<br>
&gt; &nbsp; &nbsp; at Main.main(Main.java:113)<br>
&gt;<br>
&gt;<br>
&gt; *This is why the server is asking Java the JBoss credentials!!!*<br>
&gt;<br>
&gt; How can I pass them?<br>
&gt; Should I define them in the changeset.xml?<br>
&gt; If it is so where can I fine the XSD file ???? I guess there is a tag<br>
&gt; or an attribute like &quot;password&quot; or something<br>
&gt; that will contain date that the Agent has to send to the server....<br>
&gt; Should I remove the password check from JBoss?<br>
&gt;<br>
&gt; Please let me know.<br>
&gt;<br>
&gt; As far as I know there are other people on the IRC CHAT with the same<br>
&gt; issue.<br>
&gt;<br>
&gt; Thank you 4 any help u can give me.<br>
&gt;<br>
&gt; Bye,<br>
&gt;<br>
&gt; Massi.<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sat, 19 Jun 2010 10:17:51 -0700 (PDT)<br>
From: G3 &lt;<a href="mailto:charmz05@gmail.com">charmz05@gmail.com</a>&gt;<br>
Subject: [rules-users] Connection with Active Directory multiple<br>
&nbsp; &nbsp; &nbsp; &nbsp;organizational units<br>
To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
Message-ID: &lt;<a href="mailto:1276967871426-907892.post@n3.nabble.com">1276967871426-907892.post@n3.nabble.com</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
<br>
I am able to authenticate with Active Directory but with only a single<br>
organizational unit but not with users of multiple organizational units<br>
This is my organizational structure<br>
&#43;cn=test,cn=con<br>
--&#43;ou=Sample1<br>
-----uid:user1,uid:user2<br>
--&#43;ou=Sample2<br>
-----uid:user3,uid:user4<br>
--&#43;roles<br>
-----admin:uid:user1,user3<br>
-----user:uid:user2,user4<br>
<br>
I have set the admin rights accordingly in Guvnor.<br>
I am using Jboss Guvnor standalone 4.2.3 &nbsp;and I am trying to connect<br>
multiple organizational units using JAAS<br>
&nbsp;my login-config.xml<br>
---------------------<br>
&lt;application-policy name=&quot;adConnection&quot;&gt;<br>
&nbsp;&lt;authentication&gt;<br>
&nbsp;&lt;login-module code=&quot;org.jboss.security.auth.spi.LdapExtLoginModule&quot;<br>
flag=&quot;required&quot; &gt;<br>
&nbsp;&lt;module-option<br>
name=&quot;java.naming.provider.url&quot;&gt;ldap://<a href="http://c.test.com:389/" target="_blank">c.test.com:389/</a>&lt;/module-option&gt;<br>
&nbsp;&lt;module-option<br>
name=&quot;java.naming.security.authentication&quot;&gt;simple&lt;/module-option&gt;<br>
&nbsp;&lt;module-option<br>
name=&quot;bindDN&quot;&gt;CN=Administrator,CN=Users,dc=test,dc=com&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;bindCredential&quot;&gt;password&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;baseCtxDN&quot;&gt;OU=Sample1,dc=test,dc=com&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;baseFilter&quot;&gt;(CN={0})&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;rolesCtxDN&quot;&gt;OU=roles,dc=test,dc=com&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;uidAttributeID&quot;&gt;member&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;matchOnUserDN&quot;&gt;true&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;roleFilter&quot;&gt;(member={1})&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;roleAttributeID&quot;&gt;CN&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;roleRecursion&quot;&gt;-1&lt;/module-option&gt;<br>
&nbsp;&lt;/login-module&gt;<br>
&lt;login-module code=&quot;org.jboss.security.auth.spi.LdapExtLoginModule&quot;<br>
flag=&quot;required&quot; &gt;<br>
&nbsp;&lt;module-option<br>
name=&quot;java.naming.provider.url&quot;&gt;ldap://<a href="http://c.test.com:389/" target="_blank">c.test.com:389/</a>&lt;/module-option&gt;<br>
&nbsp;&lt;module-option<br>
name=&quot;java.naming.security.authentication&quot;&gt;simple&lt;/module-option&gt;<br>
&nbsp;&lt;module-option<br>
name=&quot;bindDN&quot;&gt;CN=Administrator,CN=Users,dc=test,dc=com&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;bindCredential&quot;&gt;password&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;baseCtxDN&quot;&gt;OU=Sample2,dc=test,dc=com&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;baseFilter&quot;&gt;(CN={0})&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;rolesCtxDN&quot;&gt;OU=roles,dc=test,dc=com&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;uidAttributeID&quot;&gt;member&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;matchOnUserDN&quot;&gt;true&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;roleFilter&quot;&gt;(member={1})&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;roleAttributeID&quot;&gt;CN&lt;/module-option&gt;<br>
&nbsp;&lt;module-option name=&quot;roleRecursion&quot;&gt;-1&lt;/module-option&gt;<br>
&nbsp;&lt;/login-module&gt;<br>
&nbsp;&lt;/authentication&gt;<br>
&lt;/application-policy&gt;<br>
<br>
and my component.xml<br>
-------------------------<br>
&lt;security:identity authenticate-method=&quot;#{authenticator.authenticate}&quot;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;jaas-config-name=&quot;adConnection&quot;/&gt;<br>
<br>
I donot get any &nbsp;errors in server console during deployment but when login<br>
,I cannot login into Guvnor and I get password or user name incorrect.Can<br>
some one help me out<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Connection-with-Active-Directory-multiple-organizational-units-tp907892p907892.html" target="_blank">
http://drools-java-rules-engine.46999.n3.nabble.com/Connection-with-Active-Directory-multiple-organizational-units-tp907892p907892.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Sat, 19 Jun 2010 13:38:26 -0400<br>
From: Mahalakshmi &lt;<a href="mailto:mr2809@nyu.edu">mr2809@nyu.edu</a>&gt;<br>
Subject: Re: [rules-users] [Knowledge Agent Question<br>
To: Rules Users List &lt;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>
Message-ID:<br>
&nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:AANLkTilLuK0xGcaRKmihD-VY4meA_Pg_d13hoyHmvTyy@mail.gmail.com">AANLkTilLuK0xGcaRKmihD-VY4meA_Pg_d13hoyHmvTyy@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;windows-1252&quot;<br>
<br>
Hi,<br>
Thanks so much for the info.<br>
So then is there any way to actually add the dslr (created at runtime) files<br>
to be detected by the program??<br>
Because with eclipse we always need to keep refreshing the files everytime<br>
which totally defeats the purpose of using business rules !! Until ofcourse<br>
you have fixed set of rules!<br>
Any other ideas?<br>
Also is there a problem if we add multiple .dslr files to our rule base???<br>
When I do that only the first .dslr files actually executes and the others<br>
dont. I tried creating all the same files as .drl files and it works<br>
perfectly fine.<br>
Any idea why that happens??? I dont get any error stack.<br>
<br>
Please help.<br>
<br>
Thanks<br>
M<br>
<br>
2010/6/19 Esteban Aliverti &lt;<a href="mailto:esteban.aliverti@gmail.com">esteban.aliverti@gmail.com</a>&gt;<br>
<br>
&gt; If yo are using Kagent, you don't need to add the change set to kbuilder.<br>
&gt; The steps you need to implement should be something like this:<br>
&gt;<br>
&gt; 1. Start ResourceChangeScanner and ResourceChangeMonitor services<br>
&gt; 2. Create a changeset.xml file containing all the resources you want to add<br>
&gt; to the kagent's kbase<br>
&gt; 3. Create a new kagent<br>
&gt; 4. kagent.applyChangeSet() &lt;-- The agent will process each resource the xml<br>
&gt; defines and add a monitor to detect further changes.<br>
&gt; 5. kagent.getKnowledgeBase() &lt;-- the agen't kbase will contain all the<br>
&gt; rules now<br>
&gt;<br>
&gt; If you are looking for examples:<br>
&gt; <a href="http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/agent/" target="_blank">
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/agent/</a><br>
&gt;<br>
&gt; The bad new is that kagent can't manage dsl/dslr resouces yet. I'm working<br>
&gt; on that right now. Please follow these issues to be inform:<br>
&gt; <a href="https://jira.jboss.org/browse/JBRULES-2377" target="_blank">https://jira.jboss.org/browse/JBRULES-2377</a> &amp;<br>
&gt; <a href="https://jira.jboss.org/browse/JBRULES-2350" target="_blank">https://jira.jboss.org/browse/JBRULES-2350</a><br>
&gt;<br>
&gt; Best,<br>
&gt;<br>
&gt;<br>
&gt; 2010/6/18 Fnu Mahalakshmi &lt;<a href="mailto:FMahalakshmi@nyx.com">FMahalakshmi@nyx.com</a>&gt;<br>
&gt;<br>
&gt;&gt; &nbsp;Hi guys,<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; In my program I have couple of .brl, .drl and .dslr files which get added<br>
&gt;&gt; to the rulebase.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Now my .brl files get converted to drl files and then have to be added to<br>
&gt;&gt; the rulebase.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; After creating my .drl or .dslr file I am using this code to update the<br>
&gt;&gt; resources in my change-set.xml<br>
&gt;&gt;<br>
&gt;&gt; *ResourceChangeScannerConfiguration sconf =<br>
&gt;&gt; ResourceFactory.getResourceChangeScannerService().newResourceChangeScannerConfiguration();<br>
&gt;&gt; *<br>
&gt;&gt;<br>
&gt;&gt; *sconf.setProperty( **&quot;drools.resource.scanner.interval&quot;**,*<br>
&gt;&gt;<br>
&gt;&gt; * &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; **&quot;30&quot;** ); **// set the disk scanning interval to<br>
&gt;&gt; 30s, default is 60s*<br>
&gt;&gt;<br>
&gt;&gt; *ResourceFactory.getResourceChangeScannerService().configure*( sconf )*;*<br>
&gt;&gt;<br>
&gt;&gt; ResourceFactory.getResourceChangeNotifierService()*.*start(*);*<br>
&gt;&gt;<br>
&gt;&gt; *KnowledgeBuilder* kbuilder =<br>
&gt;&gt; KnowledgeBuilderFactory.newKnowledgeBuilder()*;*<br>
&gt;&gt;<br>
&gt;&gt; *kbuilder.add( ResourceFactory.newClassPathResource( **&quot;change-set.xml&quot;**,<br>
&gt;&gt; getClass()),ResourceType.CHANGE_SET );*<br>
&gt;&gt;<br>
&gt;&gt; *if* ( kbuilder.hasErrors() *)* *{*<br>
&gt;&gt;<br>
&gt;&gt; * &nbsp; System.err.println( kbuilder.getErrors().toString() );*<br>
&gt;&gt;<br>
&gt;&gt; *}*<br>
&gt;&gt;<br>
&gt;&gt; * *<br>
&gt;&gt;<br>
&gt;&gt; *Now as per my understanding:*<br>
&gt;&gt;<br>
&gt;&gt; Since a new .drl file has been just created ? the resource notifier will<br>
&gt;&gt; update my change-set.xml file of the change.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Now I need to load this new file to my rulebase along with my dsl file.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; *kbuilder.add( ResourceFactory.newClassPathResource( **&quot;change-set.xml&quot;**,<br>
&gt;&gt; getClass()),ResourceType.CHANGE_SET );*<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; is adding my new created file to my knowledge pacakage.<br>
&gt;&gt;<br>
&gt;&gt; How can I specify my dsl file also to be added along with it???<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Can you please guide me in the right direction..??<br>
&gt;&gt;<br>
&gt;&gt; Please help.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Thank you.<br>
&gt;&gt;<br>
&gt;&gt; M<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; *Please consider the environment before printing this email.*<br>
&gt;&gt;<br>
&gt;&gt; *Visit our website at <a href="http://www.nyse.com/" target="_blank">http://www.nyse.com</a><br>
&gt;&gt; *****************************************************************************<br>
&gt;&gt;<br>
&gt;&gt; Note: The information contained in this message and any attachment to it<br>
&gt;&gt; is privileged, confidential and protected from disclosure. If the reader of<br>
&gt;&gt; this message is not the intended recipient, or an employee or agent<br>
&gt;&gt; responsible for delivering this message to the intended recipient, you are<br>
&gt;&gt; hereby notified that any dissemination, distribution or copying of this<br>
&gt;&gt; communication is strictly prohibited. If you have received this<br>
&gt;&gt; communication in error, please notify the sender immediately by replying to<br>
&gt;&gt; the message, and please delete it from your system. Thank you. NYSE<br>
&gt;&gt; Euronext. *<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
&gt;<br>
&gt; Esteban Aliverti<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.jboss.org/pipermail/rules-users/attachments/20100619/9c5f98ce/attachment.html" target="_blank">
http://lists.jboss.org/pipermail/rules-users/attachments/20100619/9c5f98ce/attachment.html</a><br>
<br>
------------------------------<br>
<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>
<br>
End of rules-users Digest, Vol 43, Issue 117<br>
********************************************<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br clear="all">
<br>
-- <br>
Amit &nbsp;Bhardwaj<o:p></o:p></p>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
**************************************************************************************<br>
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data
 may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.<br>
<br>
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00<br>
**************************************************************************************<br>
</font>
</body>
</html>