[rules-users] JBoss rules and EJB3 integration best practices?

Paul Smith paul.t.smith at gmail.com
Mon Jun 25 08:21:42 EDT 2007


I basically have a singleton factory that feeds the rule base to the session
bean. It's cached in a map once the first compile is done so it's pretty
quick. I haven't done any load testing but I don't see it being a hot spot.
Easy enough to create a pool of them if it does become a bottleneck. This is
all EJB3 as well.

On 6/25/07, Michael Neale <michael.neale at gmail.com> wrote:
>
> ideally there is only one instance of a rulebase, and you create new
> sessions as needed - presumably with session beans you will have a few
> instances (which is not ideal, but you can live with it).
>
>
> On 6/24/07, Philip Reimer <reimer at atb-bremen.de> wrote:
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hello.
> >
> > I'm very new to JBoss rules (or rules engines in general), so please
> > excuse any stupid questions.
> >
> > I have to integrate jboss rules into an ejb3 project: expose rules
> > functionality via a session bean (and probably a web service later).
> >
> > I got it basically working but it's probably not a very elegant
> > solution. Could anyone give me some hints for some best practices when
> > using rules from within a session bean? Especially, regarding the
> > caching of built rule bases?
> >
> > Thanks in advance,
> > Philip
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.6 (GNU/Linux)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> >
> > iD8DBQFGfm6Jzz98eoVPWsQRArJtAJ0RwT/I/PYxZN7LzVSTuejorpGo0gCeJgqX
> > DqgnI1JWcBzOBFsuqSqSVUo=
> > =26FR
> > -----END PGP SIGNATURE-----
> > _______________________________________________
> > rules-users mailing list
> > rules-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070625/a7a50a3a/attachment.html 


More information about the rules-users mailing list