[jboss-user] [JBoss jBPM] - Detaching process definition from hibernate
do-not-reply at jboss.com
Tue Apr 22 16:49:44 EDT 2008
The throughput requirements of my application dictate that I do not persist process instances in my database. It simply processes too many process instances per second. I would however, still like to use the database to store process definitions, so I can use the webapp for process definition deployment.
// Get PD from the DB
| pd = jbpmContext.getGraphSession().findLatestProcessDefinition(name);
| // Create a new PI
| pi = new ProcessInstance(pd);
The problem I have is that the process instance created still contains some collections which are lazy-loaded and when the process instance is accessed later, I get a lazy load exceptions. (Trying to explicitly load all possible fields of the process def still did not fix things, since some collections remain empty)
Is there any way to somehow detach the process definition so it can be used outside the hibernate context? There do not appear to be any methods to turn a process definition back into an XML string. One solution is to just use XML files for process definition deployment, but that takes away many of the nifty features such as hot-deployment of process definitions and process definition versioning support.
Thanks for the help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145986#4145986
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145986
More information about the jboss-user