Hi Bruno - I am just re-working that configuration stuff as we speak.
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.
In terms of maven, follow the build-readme.html in the drools-jbrms root -
requires maven 2 be installed.
As for compiling and executing, that part is not done yet (as it needs to be
remote accessible - so the "client" process can be outside of the rules
server - which it would normally be, or at least often be).
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 "content handlers" for all the
different formats wired in.
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.
On 3/21/07, Bruno Miguel Duarte <est-b-duarte(a)ptinovacao.pt> wrote:
Hi Michael,
You have to go to US or Europe, your timezone is incompatible with the
rest of the world… :P
I'm trying to make an experience with the JBRMS and the repository.
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!
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!).
My questions are:
In the war you uploaded, where is the repository.xml to change it to:
<PersistenceManager class="
org.apache.jackrabbit.core.persistence.db.SimpleDbPersistenceManager">
<param name="driver"
value="com.mysql.jdbc.Driver"/>
<param name="url" value=
"jdbc:mysql://10.112.128.7:3306/bruno-rulesengine-test?allowMultiQueries=true&connectTimeout=5000&socketTimeout=5000"
/>
<param name="schema" value="mysql"/>
<param name="user" value="**"/>
<param name="password" value="**"/>
<param name="schemaObjectPrefix"
value="version_"/>
<param name="externalBLOBs" value="false"/>
</PersistenceManager>
Or, how can I build the war with maven? I'm having some difficulties. Can
you please provide simple step-by-step?!
In the application I'm having some difficulties playing around with the
repository API. I want to take a specified package (repo.loadRulePackage("eg")
) and do a 'result = session.executeRules(facts)'.
If we successfully execute this example, I'll create a Wiki page with
guidelines.
Cheers,
Bruno
_______________________________________________
rules-dev mailing list
rules-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev