<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: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:D="DAV:" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" 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:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" 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:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" 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)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</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 bgcolor=white lang=EN-ZA link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='color:windowtext'>Hi Brian,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>&gt;&gt; The goal
here is to monitor the directory above for any changes to the files or
additional files that show up.&nbsp; Any help would be appreciated.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:windowtext'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:windowtext'>If you want to monitor a
local dir try using the </span><span lang=EN-US>&quot;</span><span
style='color:windowtext'>dir</span><span lang=EN-US>&quot;</span><span
style='color:windowtext'> property instead of </span><span lang=EN-US>&quot;</span><span
style='color:windowtext'>url</span><span lang=EN-US>&quot;</span><span
style='color:windowtext'>. In your case you would then have something like:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
&nbsp;&nbsp; &nbsp; Properties prop = new Properties(); <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
prop.setProperty(&quot;dir&quot;, &quot;c:/svn/code/sleuth/src/net/intellidata/sleuth/description/rules/&quot;);<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; prop.setProperty(&quot;poll&quot;, &quot;300&quot;); // poll
every 300 seconds for hot deployment.<br>
<br>
</span><span style='color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:windowtext'>I&#8217;m not sure if you
would need these properties.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; prop.setProperty(&quot;newInstance&quot;, &quot;true&quot;);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
prop.setProperty(&quot;localCacheDir&quot;, &quot;.&quot;);<br>
<br>
</span><span style='color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:windowtext'>Have a look at Section 7.1.1.
Deployment using the RuleAgent of the online manual at <a
href="http://downloads.jboss.com/drools/docs/4.0.6.19326.GA/html/index.html">http://downloads.jboss.com/drools/docs/4.0.6.19326.GA/html/index.html</a><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:windowtext'><o:p>&nbsp;</o:p></span></p>

<div>

<p class=MsoNormal><span style='color:windowtext'>Regards,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:windowtext'>Nico <o:p></o:p></span></p>

</div>

<p class=MsoNormal><span style='color:windowtext'><o:p>&nbsp;</o:p></span></p>

<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:
"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>
rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <b>On Behalf Of </b>Brian Trezise<br>
<b>Sent:</b> 07 April 2008 10:19 PM<br>
<b>To:</b> paulb@firstpartners.net; 'Rules Users List'<br>
<b>Subject:</b> RE: [rules-users] Hot Deployment<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='color:#1F497D'>Ok&#8230; I put that in but I&#8217;m having trouble
getting it to recognize the uri I&#8217;m passing in&#8230;&nbsp; I&#8217;m
passing in </span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:#6A0035;background:white;mso-highlight:white'>&quot;file:///c:/svn/code/sleuth/src/net/intellidata/sleuth/description/rules/&quot;</span><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:#6A0035'> and I&#8217;m getting the following exception:<br>
<br>
</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>RuleAgent(default) INFO (Mon Apr 07 13:14:40 MDT 2008): Configuring
with newInstance=true, secondsToRefresh=300</span><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>RuleAgent(default)
INFO (Mon Apr 07 13:14:40 MDT 2008): Configuring package provider : URLScanner
monitoring URLs:&nbsp;
file:/c:/svn/code/sleuth/src/net/intellidata/sleuth/description/rules/ with
local cache dir of .</span><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:navy'>java.lang.ClassCastException</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>: sun.net.www.protocol.file.FileURLConnection</span><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.drools.agent.HttpClientImpl.checkLastUpdated(</span><u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:navy'>HttpClientImpl.java:26</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.drools.agent.URLScanner.hasChanged(</span><u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:navy'>URLScanner.java:141</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.drools.agent.URLScanner.getChangeSet(</span><u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:navy'>URLScanner.java:108</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.drools.agent.URLScanner.loadPackageChanges(</span><u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:navy'>URLScanner.java:88</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.drools.agent.RuleAgent.checkForChanges(</span><u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:navy'>RuleAgent.java:330</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.drools.agent.RuleAgent.refreshRuleBase(</span><u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:navy'>RuleAgent.java:298</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.drools.agent.RuleAgent.configure(</span><u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:navy'>RuleAgent.java:284</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.drools.agent.RuleAgent.init(</span><u><span lang=EN-US style='font-size:
10.0pt;font-family:"Tahoma","sans-serif";color:navy'>RuleAgent.java:208</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.drools.agent.RuleAgent.newRuleAgent(</span><u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:navy'>RuleAgent.java:176</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.drools.agent.RuleAgent.newRuleAgent(</span><u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:navy'>RuleAgent.java:148</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at net.intellidata.sleuth.description.rules.DescriptionRuleLoader.loadRules(</span><u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:navy'>DescriptionRuleLoader.java:48</span></u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>)</span><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at
net.intellidata.sleuth.description.rules.DescriptionRuleLoaderTest.testDescriptionRuleLoader(</span><u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:navy'>DescriptionRuleLoaderTest.java:32</span></u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>)</span><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at sun.reflect.NativeMethodAccessorImpl.invoke0(</span><u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:navy'>Native
Method</span></u><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)</span><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)</span><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at java.lang.reflect.Method.invoke(Unknown Source)</span><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at junit.framework.TestCase.runTest(</span><u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:navy'>TestCase.java:154</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at junit.framework.TestCase.runBare(</span><u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:navy'>TestCase.java:127</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at junit.framework.TestResult$1.protect(</span><u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:navy'>TestResult.java:106</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at junit.framework.TestResult.runProtected(</span><u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:navy'>TestResult.java:124</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at junit.framework.TestResult.run(</span><u><span lang=EN-US style='font-size:
10.0pt;font-family:"Tahoma","sans-serif";color:navy'>TestResult.java:109</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at junit.framework.TestCase.run(</span><u><span lang=EN-US style='font-size:
10.0pt;font-family:"Tahoma","sans-serif";color:navy'>TestCase.java:118</span></u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:red'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(</span><u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:navy'>JUnit3TestReference.java:130</span></u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>)</span><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(</span><u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:navy'>TestExecution.java:38</span></u><span lang=EN-US style='font-size:
10.0pt;font-family:"Tahoma","sans-serif";color:red'>)</span><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(</span><u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:navy'>RemoteTestRunner.java:460</span></u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>)</span><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(</span><u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:navy'>RemoteTestRunner.java:673</span></u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>)</span><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(</span><u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:navy'>RemoteTestRunner.java:386</span></u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>)</span><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(</span><u><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:navy'>RemoteTestRunner.java:196</span></u><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red'>)</span><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>The goal here is to
monitor the directory above for any changes to the files or additional files
that show up.&nbsp; Any help would be appreciated.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
lang=EN-US style='font-size:10.0pt;font-family:"Arial Narrow","sans-serif";
color:gray'>___________________________________________________<br>
Brian Trezise<br>
Staff Software Engineer<br>
IntelliData, Inc<br>
</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Arial Narrow","sans-serif";
color:gray'>3173 s. uravan way<br>
aurora, colorado 80013<br>
T: 720.524.4864<br>
brian.trezise@intellidata.net<o:p></o:p></span></p>

</div>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal style='margin-left:36.0pt'><b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'> Paul Browne [mailto:paulb@firstpartners.net] <br>
<b>Sent:</b> Friday, April 04, 2008 3:56 PM<br>
<b>To:</b> Brian.Trezise@intellidata.net; Rules Users List<br>
<b>Subject:</b> Re: [rules-users] Hot Deployment<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal style='margin-left:36.0pt'><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span lang=EN-US>Brian,<br>
<br>
I'm guessing that you mean the RuleAgent Class. The Javadoc on this class gives
more info.<br>
<br>
Code sample (assuming that you have the BRMS setup as per the doc). You'll need
to change to whatever settings are appropriate for your BRMS.<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; Properties prop = new
Properties(); <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
prop.setProperty(&quot;url&quot;,uri);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
prop.setProperty(&quot;newInstance&quot;, &quot;true&quot;);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
prop.setProperty(&quot;localCacheDir&quot;, &quot;.&quot;);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
prop.setProperty(&quot;poll&quot;, &quot;300&quot;); // poll every 300 seconds
for hot deployment.<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //Get a new RuleBase
using these properties<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; RuleAgent agent =
RuleAgent.newRuleAgent(prop);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; RuleBase rb =
agent.getRuleBase(); <br>
<br>
Then use the RuleBase as normal<br>
<br>
Paul<br>
<br>
Brian Trezise wrote: <o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span lang=EN-US>In the
What&#8217;s New? Section of the Drools 4.0 documentation there is a reference
in 1.1.2 to a &#8220;Rules Engine Agent for hot deployment and BRMS
integration&#8221;.&nbsp; This would be ideal for the application I am
currently developing.&nbsp; However, this is the only mention of this agent
anywhere in the documentation.&nbsp; Does anybody know anything about this, how
to use it, any documentation about it?<br>
<br>
Thanks,<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span lang=EN-US>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><b><span lang=EN-US
style='font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:gray'>___________________________________________________<br>
Brian Trezise<br>
Staff Software Engineer<br>
IntelliData, Inc<br>
</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Arial Narrow","sans-serif";
color:gray'>3173 s. uravan way<br>
aurora, colorado 80013<br>
T: 720.524.4864<br>
<a href="mailto:brian.trezise@intellidata.net">brian.trezise@intellidata.net</a></span><span
lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:36.0pt'><span lang=EN-US>&nbsp;<o:p></o:p></span></p>

<pre style='margin-left:36.0pt'><span lang=EN-US><o:p>&nbsp;</o:p></span></pre><pre
style='margin-left:36.0pt;text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></pre><pre
style='margin-left:36.0pt;text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></pre><pre
style='margin-left:36.0pt;text-align:center'><span lang=EN-US>

<hr size=4 width="90%" align=center>

</span></pre><pre style='margin-left:36.0pt;text-align:center'><span
lang=EN-US><o:p>&nbsp;</o:p></span></pre><pre style='margin-left:36.0pt;
text-align:center'><span lang=EN-US><o:p>&nbsp;</o:p></span></pre><pre
style='margin-left:36.0pt'><span lang=EN-US><o:p>&nbsp;</o:p></span></pre><pre
style='margin-left:36.0pt'><span lang=EN-US>_______________________________________________<o:p></o:p></span></pre><pre
style='margin-left:36.0pt'><span lang=EN-US>rules-users mailing list<o:p></o:p></span></pre><pre
style='margin-left:36.0pt'><span lang=EN-US><a
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><o:p></o:p></span></pre><pre
style='margin-left:36.0pt'><span lang=EN-US><a
href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><o:p></o:p></span></pre><pre
style='margin-left:36.0pt'><span lang=EN-US>&nbsp; <o:p></o:p></span></pre>

<p class=MsoNormal style='margin-left:36.0pt'><span lang=EN-US
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p>&nbsp;</o:p></span></p>

</div>

</body>

</html>