[ http://jira.codehaus.org/browse/DROOLS-472?page=all ]
     
Michael Neale resolved DROOLS-472:
----------------------------------

    Resolution: Fixed

Will be in 2.5 (and also 3.0).

> Support for Multiple JSR94 RuleExecutionSetRepository instances
> ---------------------------------------------------------------
>
>          Key: DROOLS-472
>          URL: http://jira.codehaus.org/browse/DROOLS-472
>      Project: drools
>         Type: Improvement

>   Components: jsr94
>     Versions: 2.1
>  Environment: J2EE
>     Reporter: John Gilbert
>     Assignee: Michael Neale
>     Priority: Minor
>  Attachments: repo-fix.zip, testcase.zip
>
>
> I was attempting to bind multiple RuleRuntimes in the JNDI tree with 
> different rulesets.
> However, I discovered that the Repository was implemented as a singleton. To 
> solve this I 
> made the following enahmcements:
> - removed the static REPOSITORY variable from RuleExecutionSetRepository
> - added a repository variable to RuleServiceProviderImpl
> - pass the repository to RuleRuntimeImpl and RuleAdministratorImpl so that 
> they can access the repository
> - the ruleSession classes where also modified to pass the repository on 
> construction
> As a result I can create multiple RuleServiceProviders with different urls 
> and bind their respective RuleRimetimes
> to JNDI under different names with different rulesets.
> I have attached the modified code for contribution if this seems like the 
> correct solution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to