-
1. Re: How to configure jbpm to use an extended persistence con
basel Sep 8, 2006 1:19 AM (in response to andygrav)I am not that experience with Jbpm but to have Seam us an extended persistence context, add the following to faces-config.xml:
<lifecycle> <phase-listener> org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener </phase-listener> </lifecycle>
Don't forget to remove the other PhaseListener, org.jboss.seam.jsf.SeamPhaseListener -
2. Re: How to configure jbpm to use an extended persistence con
andygrav Sep 8, 2006 11:10 AM (in response to andygrav)Thanks for the prompt reply but in this case it doesnt seem to be the answer, I already have those lines in the faces-config.xml
I think jbpm handles its own connections to the datasource and I cant see how to get it to use an extended context.
My temporary workaround is to load the process again in the current hibernate session using the name of the process.
public void select()
{
GraphSession graph = jbpmContext.getGraphSession();
processList=graph.findLatestProcessDefinitions();
process=graph.findLatestProcessDefinition(process.getName());
logger.info("ProcessDefinition "+process);
//em.merge(process); this was my first try but the em is using a different configuration from jbpm and says that the class is not a persistent class
if (process!=null)
{
nodeList=process.getNodes();
...