BRMS Setup
From Kb
Contact Article Author | Blog of Article Author | FirstPartners.net Home | LinkedIn profile of Author
Contents |
See Also
JBoss Drools BRMS on Weblogic |JBoss DSL | JBoss Rules Engine
Server Setup
JBoss 4.2
- Download
- Extract
- JBoss 4.2 has integrated Tomcat 6 (via JBoss Web)
- Uses Glassfish JSF (instead of Myfaces)
- Readme notes file:///C:/software/jboss-4-2-1/readme.html
- Requirements
- Seam (unless using microcontainer) needs JBoss 4.2
- JBoss 4.2 needs JDK 5
- Deploy
- Copy drools-brms.war into jboss/server/default/deploy
- Usual Jboss; Logs info to console, default to jboss/server/default/log
Non JBoss Servers
- ensure java home is set
- catalina.bat start
- may need to add JSF Jars (v1.2)
Build from Source
- Checkout source from SVN (or download from downloads page)
- error if try from root , need to do from individual
- may need -Dmaven.test.skip.true
- order
- core
- compiler
- repository
Maven Build
install maven - download source - in brms folder, mvn package install - note on building brms from source file:///C:/projects-drools/drools-4.0.1-src/drools-jbrms/build-readme.html
Google Web Tookit (GWT)
- download from http://code.google.com/webtoolkit/download.html
- separate licence
- install (unzip) to directory - like c:/software/gwt
- change build.properties (jbrms sub project) to point to this location
- Ant tasks should now point to rebuild these files automatically
Eclipse (Red Had Developer Studio)
- Download RHDS
- install drools 4 update: http://downloads.jboss.com/drools/updatesite/
- Strange that not provided
- Add
- Add RHDS Perspective - give Seam and JSF Views
- Add Maven IDE Plugin
- Add Subversion IDE Plugin
Eclipse Environment Variables Optional - only if you want to debug GWT
- Setup environment variables are in eclipse (Window->Preferences->Java->Build path->Classpath variables):
- M2_REPO, as normal, the standard maven .m2 repository , in windows this is under 'User' folder
- GWT_HOME - the google web toolkit folder
- GWT_DEV - the platform specific "dev" jar that comes with Google Web toolkit
Using JBoss Rules (Drools) BRMS
Further Documentation
http://wiki.jboss.org/wiki/Wiki.jsp?page=RulesRepository
Sample Rules Data
- Drools Blog - Discount insurance brokers example for BRMS (Fernando Meyer)
- Usign Subversion, Get Rules Sample from http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-examples/drools-examples-brms/
- Import the follwoing file: C:\Users\paul\workspace-rhds1\drools-example-using-brms\src\main\resources\resource-export.xml
BRMS User Interface
- URL http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/JBRMS.html
- By default: blank password and username
JackRabbit notes
- By default , repository on JBoss goes to C:\software\jboss-4-2-1\bin\repository\ (here jboss-4-2-1 is the server base)
Questions
- Where is the BRMS admin guide?
Seam Notes
(from Seam 2 PDF) The web configuration for JBoss 4.0 can be found in the server/default/deploy/jbossweb-tomcat55.sar. You'll need to delete myfaces-api.jar any myfaces-impl.jar from the jsf-libs directory. Then, you'll need to copy jsf-api.jar, jsf-impl.jar, el-api.jar, and el-impl.jar to that directory. The JSF JARs can be found in the Seam lib directory. The el JARs can be obtained from the Seam 1.2 release. You'll also need to edit the conf/web.xml, replacing myfaces-impl.jar with jsf-impl.jar.

