This content has been marked as final.
Show 2 replies
-
1. Re: Is the hot redeploying of permission drools possible now?
blabno Jul 10, 2009 6:14 PM (in response to gena)Could anybody comment on that ? Is hot deployment of drools possible ?
-
2. Re: Is the hot redeploying of permission drools possible now?
blabno Jul 11, 2009 2:32 PM (in response to gena)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.explode
target 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 ?