[rules-users] Design question for user login monitoring
Greg Barton
greg_barton at yahoo.com
Thu Jun 10 22:53:04 EDT 2010
Sure, an EJB call is fine. The rule action is just plain old java code. However I'd suggest not making a remote call directly. Unless you're using multithreaded execution the rules will run In only one thread, so a slow RPC will pause everything. I'd send requests locally to an external processing thread.
GreG
On Jun 10, 2010, at 11:04 AM, Earnie Dyke <earniedyke at yahoo.com> wrote:
Greg,
Thanks for the quick response. I already have the Login logging working with
and entity similar to what you describe.
To address your issues:
1. Yes, a singleton rule session is what I had in mind. Running inside an
MBean.
2. Could the service you refer to be an EJB? My app is using Seam if that
adds anything to this discussion.
Earnie!
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Design-question-for-user-login-monitoring-tp885841p885980.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
More information about the rules-users
mailing list