[seam-dev] repeatedly save the same processInstance caused by seam

Pete Muir pmuir at redhat.com
Tue Mar 9 10:27:21 EST 2010


Please use the forums for user queries.

Thanks!

On 9 Mar 2010, at 15:14, Richard Qin wrote:

> hi!
> 
> I'm tuning a web app based seam 2.2.0 and jBPM 3.2.5.sp5. The call tree of CPU view in the jProfiler shows that the jbpmContext.save(ProcessInstance processInstance) was called more than 2000 times in a jsf request. After debugging the source code of app, seam, and jBPM, I found that each event-scoped component initialization in a jsf request would cause the same processInstance associated with the business process context to be added to the autoSaveProcessInstances by jbpmContext.autoSaveProcessInstances method. So in the end of a jsf request, each of the same processInstance in the autoSaveProcessInstances would be repeatedly saved in the jbpmContext.autoSave. How can i avoid to repeatedly save the same processInstance? Any suggestion are greatly appreciated.
> 
> 
> -- 
> Richard Qin
> JBoss Solution Architect
> Red Hat Service Center, P.R.China
> _______________________________________________
> seam-dev mailing list
> seam-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/seam-dev




More information about the seam-dev mailing list