[JBoss JIRA] Created: (JBRULES-2683) DroolsSession's initWorkItemManagerFactory method can not work in a OSGi context
by Antoine Toulme (JIRA)
DroolsSession's initWorkItemManagerFactory method can not work in a OSGi context
--------------------------------------------------------------------------------
Key: JBRULES-2683
URL: https://jira.jboss.org/browse/JBRULES-2683
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-core
Affects Versions: 5.2.0.M1
Reporter: Antoine Toulme
Assignee: Mark Proctor
Fix For: FUTURE
This affects the current trunk.
The code in the method does this:
String className = this.chainedProperties.getProperty( "drools.workItemManagerFactory",
"org.drools.process.instance.impl.DefaultWorkItemManagerFactory" );
[..]
clazz = (Class<WorkItemManagerFactory>) Thread.currentThread().getContextClassLoader().loadClass( className );
[..]
clazz = (Class<WorkItemManagerFactory>) SessionConfiguration.class.getClassLoader().loadClass( className );
None of this can work for the default factory since drools-core does not depend on drools-flow-core (and creating a dependency would create a cycle). Actually, this won't work for customer code as well, since drools-core won't depend on their bundle.
I suggest to use a declarative service to work around this problem, while keeping this type of instantiation around when OSGi is not on.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years
[JBoss JIRA] Created: (JBRULES-2313) Tomcat memery leak with drools 4.0.7 or 5.0.1
by GREFFET Emmanuel (JIRA)
Tomcat memery leak with drools 4.0.7 or 5.0.1
----------------------------------------------
Key: JBRULES-2313
URL: https://jira.jboss.org/jira/browse/JBRULES-2313
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-core (expert)
Affects Versions: 5.0.1.FINAL, 4.0.7
Environment: XP tomcat 5.5.9
Reporter: GREFFET Emmanuel
Assignee: Mark Proctor
Priority: Critical
The memory is never released !!! (never ever ) when à Stop and Start or restart Tomcat.
A made this test with a simple Drools call with a simple webapp and i tried with 4.0.7 and 5.0.1 drools version. The problem is the same.
We need to stop tomcat process to release memory. Until this stop each Tomcat "Restart" with a drools call, will never release the memory.
I made graphic with VisualWM, and we can see this problem !
I made a zip of my simple Eclipse project (webapp + drools) and word file for more information and screen copy of VisualVM.
Thanks for help.
Emmanuel GREFFET ( FRANCE)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years