Could anybody comment on that ? Is hot deployment of drools possible ?
After experimenting a bit i can tell that it is very simple to hot deploy *.drl files.
All you need to do is copy new rule files to deployment directory (i.e.
explodetarget in seam-gen project) and remove several items :
Contexts.getSessionContext().remove("org.jboss.seam.security.ruleBasedPermissionResolver"); Contexts.getSessionContext().remove("org.jboss.seam.security.defaultResolverChain"); Contexts.getApplicationContext().remove("securityRules");
Note that component name in last line may vary according to your components.xml, mine was :
<drools:rule-base name="securityRules"> <drools:rule-files><value>/security.drl</value></drools:rule-files> </drools:rule-base>
It would be cool if such functionality was included in hot deploy filter.
I think modification of org.jboss.seam.init.Initialization.redeploy method would be enough.
And one more think : how can I find out from java code what name was configured for drools:rule-base ?