Hi Bruno - I am just re-working that configuration stuff as we speak. <br><br>So there will be a components.xml that allows you to specify the home, in that home, it will auto generate a repository.xml, which you can subsequently edit, as you mention.
<br><br>In terms of maven, follow the build-readme.html in the drools-jbrms root - requires maven 2 be installed. <br><br>As for compiling and executing, that part is not done yet (as it needs to be remote accessible - so the &quot;client&quot; process can be outside of the rules server - which it would normally be, or at least often be).
<br>We have drools-compiler integration for basic validation, but Edson is beaving away integrating the compiler - dealing with errors and reporting is quite difficult, and we have to have &quot;content handlers&quot; for all the different formats wired in. 
<br><br>As for MySQL - I have not tested it with that. The version you have - the repository.xml is generated in a default location by Jackrabbit. What you can do, is keep the repository.xml where it is generated (usually relative to the app server), and delete the other directories, you can then edit it to connect to your database - and next time you start up, it will auto generate the DB Schema in the target database.
<br><br><div><span class="gmail_quote">On 3/21/07, <b class="gmail_sendername">Bruno Miguel Duarte</b> &lt;<a href="mailto:est-b-duarte@ptinovacao.pt">est-b-duarte@ptinovacao.pt</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">











<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Hi Michael,</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">You have to go to US or Europe,
your timezone is incompatible with the rest of the world… :P</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I'm trying to make an experience with the JBRMS and
the repository.</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I want to have a JBoss AS with a JBRMS accessing to a JDBC
repository (eg MySQL). In the JBRMS I want to change the rules!</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Then, I want to have an application that also accesses to
the JDBC repository. In the application I want to evaluate some facts (fire
rules!).</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">My questions are:</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">In the war you uploaded, where is the repository.xml to
change it to:</span></font></p>

<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">&lt;
</span></font><font color="#3f7f7f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(63, 127, 127);">PersistenceManager </span></font><font color="#7f007f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 127);">
class</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">=</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">
&quot;
org.apache.jackrabbit.core.persistence.db.SimpleDbPersistenceManager&quot;</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">&gt;</span></font><font face="Courier New" size="2">
<span style="font-size: 10pt;"></span></font></p>

<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">&lt;</span></font><font color="#3f7f7f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(63, 127, 127);">
param </span></font><font color="#7f007f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 127);">name</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">
=</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">&quot;driver&quot;
</span></font><font color="#7f007f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 127);">value</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">
=</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">&quot;com.mysql.jdbc.Driver&quot;</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">
/&gt;</span></font><font face="Courier New" size="2"><span style="font-size: 10pt;"></span></font></p>

<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">&lt;</span></font><font color="#3f7f7f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(63, 127, 127);">
param </span></font><font color="#7f007f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 127);">name</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">
=</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">&quot;url&quot;
</span></font><font color="#7f007f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 127);">value</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">
=</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">&quot;jdbc:mysql://10.112.128.7:3306/bruno-rulesengine-test?allowMultiQueries=true&amp;connectTimeout=5000&amp;socketTimeout=5000&quot;
</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">/&gt;</span></font><font face="Courier New" size="2"><span style="font-size: 10pt;"></span></font></p>

<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">&lt;</span></font><font color="#3f7f7f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(63, 127, 127);">
param </span></font><font color="#7f007f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 127);">name</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">
=</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">&quot;schema&quot;
</span></font><font color="#7f007f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 127);">value</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">
=</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">&quot;mysql&quot;</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">
/&gt;</span></font><font face="Courier New" size="2"><span style="font-size: 10pt;"></span></font></p>

<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">&lt;</span></font><font color="#3f7f7f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(63, 127, 127);">
param </span></font><font color="#7f007f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 127);">name</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">
=</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">&quot;user&quot;
</span></font><font color="#7f007f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 127);">value</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">
=</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">&quot;**&quot;</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">
/&gt;</span></font><font face="Courier New" size="2"><span style="font-size: 10pt;"></span></font></p>

<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">&lt;</span></font><font color="#3f7f7f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(63, 127, 127);">
param </span></font><font color="#7f007f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 127);">name</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">
=</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">&quot;password&quot;
</span></font><font color="#7f007f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 127);">value</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">
=</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">&quot;**&quot;</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">
/&gt;</span></font><font face="Courier New" size="2"><span style="font-size: 10pt;"></span></font></p>

<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">&lt;</span></font><font color="#3f7f7f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(63, 127, 127);">
param </span></font><font color="#7f007f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 127);">name</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">
=</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">&quot;schemaObjectPrefix&quot;
</span></font><font color="#7f007f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 127);">value</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">
=</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">&quot;version_&quot;</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">
/&gt;</span></font><font face="Courier New" size="2"><span style="font-size: 10pt;"></span></font></p>

<p style=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">&lt;</span></font><font color="#3f7f7f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(63, 127, 127);">
param </span></font><font color="#7f007f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 127);">name</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">
=</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">&quot;externalBLOBs&quot;
</span></font><font color="#7f007f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(127, 0, 127);">value</span></font><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">
=</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(42, 0, 255);">&quot;false&quot;</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">
/&gt;</span></font><font face="Courier New" size="2"><span style="font-size: 10pt;"></span></font></p>

<p><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; color: black;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">&lt;/</span></font><font color="#3f7f7f" face="Courier New" size="2"><span style="font-size: 10pt; color: rgb(63, 127, 127);">
PersistenceManager</span></font><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">&gt;</span></font></p>

<p><font color="teal" face="Courier New" size="2"><span style="font-size: 10pt; color: teal;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Or, how can I build the war with maven? I'm having
some difficulties. Can you please provide simple step-by-step?!</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">In the application I'm having some difficulties playing
around with the repository API. I want to take a specified package (repo.loadRulePackage(&quot;eg&quot;)
) and do a 'result = session.executeRules(facts)'.</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">If we successfully execute this example, I'll create a
Wiki page with guidelines.</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Cheers,</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Bruno</span></font></p>

</div>

</div>


<br>_______________________________________________<br>rules-dev mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">
https://lists.jboss.org/mailman/listinfo/rules-dev</a><br><br></blockquote></div><br>