[jboss-user] [JBoss Seam] - JBoss Rules update in Seam CVS - migration notes

shane.bryzak@jboss.com do-not-reply at jboss.com
Wed May 9 22:14:22 EDT 2007


Seam CVS has been updated to use JBoss Rules (Drools) version 4.0.0 MR2, which requires some changes if you are using either a Seam-managed working memory or Seam security.  Here are the migration notes:

1) The number of required jars has been greatly reduced.  The following jars are now required to be listed in your application.xml file:
antlr-3.0b7.jar
drools-compiler-4.0.0.MR2.jar
drools-core-4.0.0.MR2.jar
janino-2.5.6.jar
mvel14-1.2beta16.jar

2) If you are using Seam's ManagedWorkingMemory class, please note that its Unwrap method now returns a StatefulSession instead of a WorkingMemory (StatefulSession now implements the WorkingMemory interface).

3) Rule compilation seems to be a little stricter on syntax.  Rule definitions must be terminated with the word "end" (previously "end;" - note the semicolon, was acceptable).  It also seems to be a little stricter about white space and line ends also.  If your rules no longer compile, check your rule file for extraneous white space or carriage returns/linefeeds.

The Seam examples have been updated to work with this new version, so if in doubt, take a look at the examples.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044557#4044557

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044557



More information about the jboss-user mailing list