Hi Eric, <br><br>Someone already made a contrib of a maven plugin, I think I did some review on that code but it never went to mainstream. <br>could you please compare your code to the attachment? <br><a href="http://jira.jboss.org/jira/browse/JBRULES-1273">http://jira.jboss.org/jira/browse/JBRULES-1273</a><br>
<br><br><br><div class="gmail_quote">On Fri, Mar 7, 2008 at 1:22 PM, Eric Miles <<a href="mailto:eric.miles@kronos.com">eric.miles@kronos.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have not performed any tests on this, but I'm sure the Drools guys<br>
could comment on it as they provide serialized vs non-serialized support<br>
in the framework. I would have to think it would decrease<br>
initialization time as you're only de-serializing objects vs compiling a<br>
rule set. Of course, your build time will increase :)<br>
<br>
Our main goal was to limit the number (and size) of the jars we had to<br>
include in our application as we already had a very large distributable<br>
for our application.<br>
<br>
Some features of the compilation mojo:<br>
- Precompiles drls, ruleflow, and dsl into their individual packages<br>
- Supports single package being spread across multiple DRL and rule flow<br>
files using same package name.<br>
- Supports DSL through a specific naming convention (some work could be<br>
done here to be a little more flexible)<br>
- Supports compression to decrease serialized package file sizes<br>
(Currently gzip, could tweak to support other compressions)<br>
- Serializes via XStream (could be tweaked to support different<br>
serialization mechanisms)<br>
<font color="#888888"><br>
Eric<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Fri, 2008-03-07 at 16:57 +0100, Geoffrey De Smet wrote:<br>
> Sounds interesting.<br>
> Does it noticeably decrease RuleBase initialization time at runtime?<br>
><br>
> With kind regards,<br>
> Geoffrey De Smet<br>
><br>
><br>
> Eric Miles wrote:<br>
> > Is there a Maven Drools compilation mojo, provided either by the Drools<br>
> > team or some open source project? If not, I have one that I'd be<br>
> > willing to submit. I think it's pretty slick and would only require a<br>
> > few tweaks to truly make it useful (hard coded to currently use XStream<br>
> > serialization).<br>
> > _______________________________________________<br>
> > rules-users mailing list<br>
> > <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
> > <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
> ><br>
><br>
> _______________________________________________<br>
> rules-users mailing list<br>
> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Fernando Meyer <a href="http://fmeyer.org">http://fmeyer.org</a><br>JBoss Rules Core Developer<br><a href="mailto:fernando@fmeyer.org">fernando@fmeyer.org</a>