[jboss-user] [JBoss Seam] - Re: Getting JBPM to use the seam managed persistence context
jcruise
do-not-reply at jboss.com
Fri Nov 16 05:24:49 EST 2007
Ok. Do you have any interest in a patch to allow us to do something like this in components.xml:
| <bpm:jbpm name="config1" jbpm-configuration-name="jbpm-1.cfg.xml" />
| <bpm:jbpm name="config2" jbpm-configuration-name="jbpm-2.cfg.xml"/>
| <bpm:managed-jbpm-context name="jbpmContext" auto-create="true" jbpm-session-factory="#{jbpmConfiguration}" />
|
where jbpmConfiguration would a reference to either config1 or config2
Note that the current managed JbpmContext has a hard dependency on the default jbpm implementation because of code like this:
| jbpmContext = Jbpm.instance().getJbpmConfiguration().createJbpmContext();
|
You can't just set the session context manually after getting the ManagedJbpmContext, nor can you replace the default implementation of ManagedJbpmContext without patching Seam because of code like this:
| ProcessInstance process = ManagedJbpmContext.instance().newProcessInstanceForUpdate(processDefinitionName);
|
in the classes in org.jboss.seam.bpm.
Thoughts appreciated.
Cheers
J
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105382#4105382
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105382
More information about the jboss-user
mailing list