JDK 5.0
JOnAS 4.8.6
Configure the environment variable $JASMINE_RULES. This variable indicates the directory where the files .xml and .drl are saved for the server. For example:
export JASMINE_RULES=/home/jasmine/Jasmine_rules/
It's necessary to have a JOnAS installed. JONAS_BASE
must be set. Unzip jasmine-control.zip and execute the Ant
installer:
$ ant install Buildfile: build.xml init: install: [copy] Copying 4 files to /home/user/JONAS_4_8_6 BUILD SUCCESSFUL Total time: 1 second
It will automatically do:
Copy the drools.rar
file in the
$JONAS_BASE/rars/autoload/
directory. This is a
resource adapter for the rule engine Drools.
Copy the jasmine-shared.jar
file in the
$JONAS_BASE/lib/ext/
directory. A common
library.
Copy the jasmine-rules.jar
file in the
$JONAS_BASE/easybeans-deploy/
directory. One EJB
which parses the XML and uses Drools. It contains a second EJB for
creating rule logs.
Copy the jade-ejb.jar
file in the
$JONAS_BASE/easybeans-deploy/
directory. The EJB
that comunicates with the UI.
Copy the defaultRules.drl.xml
and
test.drl.xml
files in the $JASMINE_RULES
directory. This file contains the default rules for the autonomous
module.
Once everything is installed, JOnAS must be started:
$ jonas start JONAS_BASE set to /home/user/JONAS_4_8_4 2007-04-11 14:50:35,452 : Server.<init> : JVM used is ... ... 2007-04-11 14:50:42,019 : Rar.processRar : Starting deployment of /home/user/JONAS_4_8_4/rars/autoload/drools.rar 2007-04-11 14:50:42,041 : Logger.info : Configuration of the packageBuiler for the new ruleBase... 2007-04-11 14:50:42,148 : Logger.info : Load the file JASMINE_RULES/defaultRules.drl.xml 2007-04-11 14:50:43,757 : Logger.info : Init the Working Memory... 2007-04-11 14:50:43,820 : Rar.processRar : /home/user/JONAS_4_8_4/rars/autoload/drools.rar available 2007-04-11 14:50:44,642 : Rar.processRar : Starting deployment of /home/user/JONAS_4_8_4/rars/autoload/ow_easybeans_for_jonas.rar ... 2007-04-11 14:50:59,226 : ComponentManager.startComponents : [ Component(s) started : Carol SmartClientEndPoint ] 2007-04-11 14:50:59,282 : ContainersMonitor.scanNewContainers : Creating container for archive /home/user/JONAS_4_8_4/ejb3s/jasmine-rules.jar. 2007-04-11 14:50:59,569 : ENCManager.getInterceptorClass : Detecting JOnAS : using JOnAS ENC for the naming. 2007-04-11 14:50:59,585 : JContainer3.start : Analyze elapsed during : 223 ms 2007-04-11 14:50:59,749 : JContainer3.start : Enhancement elapsed during : 135 ms ... 2007-04-11 14:51:00,324 : Ejb3Configuration.scanForClasses : found EJB3 Entity bean: org.objectweb.jasmine.rules.logs.LogEntity 2007-04-11 14:51:00,700 : Configuration.addResource : Reading mappings from resource: META-INF/orm.xml 2007-04-11 14:51:00,702 : Ejb3Configuration.addClassesToSessionFactory : [PersistenceUnit: entity] no META-INF/orm.xml found 2007-04-11 14:51:00,801 : AnnotationBinder.bindClass : Binding entity from annotated class: org.objectweb.jasmine.rules.logs.LogEntity 2007-04-11 14:51:00,928 : EntityBinder.bindTable : Bind entity org.objectweb.jasmine.rules.logs.LogEntity on table LogEntity ... 2007-04-11 14:51:02,269 : ContainersMonitor.scanNewContainers : Creating container for archive /home/user/JONAS_4_8_4/ejb3s/jade-ejb.jar. 2007-04-11 14:51:02,289 : JContainer3.start : Analyze elapsed during : 19 ms 2007-04-11 14:51:02,331 : JContainer3.start : Enhancement elapsed during : 40 ms2007-04-11 14:51:02,385 : JContainer3.start : Container started in : 114 ms ... 2007-04-11 14:51:12,099 : Logger.info : Execute the rules... 2007-04-11 14:51:12,099 : Logger.info : Execute the rules...