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
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();
//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