2 Replies Latest reply on May 9, 2007 11:31 PM by shane.bryzak

    JBoss Rules update in Seam CVS - migration notes

    shane.bryzak

      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.

        • 1. Re: JBoss Rules update in Seam CVS - migration notes
          stu2

          Hi Shane. Could you list the jars that are no longer needed? Obviously the older versions of the one you mentioned in your post. But if there were other jars there needed only by the older version of Drools, I'd rather clean them out.

          Thanks

          • 2. Re: JBoss Rules update in Seam CVS - migration notes
            shane.bryzak

            No problem, the jars that are no longer needed are as follows:

            antlr-2.7.6.jar
            antlr-3.0ea8.jar
            commons-jci-core-1.0-406301.jar
            commons-jci-janino-2.4.3.jar
            commons-lang-2.1.jar
            commons-logging-api-1.0.4.jar
            drools-compiler-3.0.5.jar
            drools-core-3.0.5.jar
            janino-2.4.3.jar
            stringtemplate-2.3b6.jar

            Note that some of these have been replaced with later versions, as listed in my original post.