Re: [rules-users] RuleAgents and containers

2010-07-25 Thread Pavel Tavoda
In default setup of many servers (which I know) and java has no prohibited reading of files outside ear. You can read changeset and rule files from specific directory e.g. (/etc/rules/...). Or you can use user.home property. We are using it without problems. However you can use other mechanisms whi

Re: [rules-users] RuleAgents and containers

2010-07-23 Thread H.C.
Pavel, Thanks for the reply. However, if my change-set file and drl files are not packed in the war/ear but located on the server's file system outside of the app server then I do believe the JEE spec forces me to map an external resource via JNDI? We want this because we need to frequently updat

Re: [rules-users] RuleAgents and containers

2010-07-23 Thread Pavel Tavoda
You can do it with singleton pattern. File should be read with something like: ResourceFactory.newClassPathResource("/MyChangeSet.xml") RuleAgent monitor all resources which are described in change-set. Changes of change-set file aren't reflected. Pavel On Fri, Jul 23, 2010 at 3:09 AM, H.C. wr

[rules-users] RuleAgents and containers

2010-07-22 Thread H.C.
Hi, I am wondering how I would use a RuleAgent when running in a JEE container? I am looking to monitor rule changes outside of the war/ear. Is that even possible and how would I do it? Would I map a JNDI name for the change-set file? Would changes to the rule files the change-set file reference