]
Thomas Diesler resolved JBPM-425.
---------------------------------
Resolution: Out of Date
Session Factory is in a static variable in the ScheduleThread class
-------------------------------------------------------------------
Key: JBPM-425
URL:
http://jira.jboss.com/jira/browse/JBPM-425
Project: JBoss jBPM
Issue Type: Feature Request
Components: Core Engine
Affects Versions: jBPM 3.0.1
Environment: All
Reporter: Adam Schwabacher
Assigned To: Tom Baeyens
Our applications needs the ability of running in multiple environments. We do this by
passing the Hibernate configuration in at runtime. We also need the abiltiy of shutting
down all factories and releasing all resources. I know shutting down the Application
Server would do this, but for some of our applications this is not a reasonable request.
The problem with the ScheduleThread class is that since the JbpmSessionFactory is a
static variable it cannot be unloaded by the VM. I can close all session factories, but
since this is a static variable, the factoryt cannot be effectively reloaded. This
causes a problem with the database connections.
I close the JbpmSessionFactory, but on subsequent launches of this class I cannot access
the database because of 'Generic' connection exceptions. I verified that with the
abiltiy of dynamically supplying a JbpmSessionFactory at runtime this problem does not
exists.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: