[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2466) Support custom entity beans as JBPM process variables

Marcus Schmidke (JIRA) jira-events at lists.jboss.org
Tue Jan 8 10:48:00 EST 2008

Support custom entity beans as JBPM process variables

                 Key: JBSEAM-2466
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2466
             Project: JBoss Seam
          Issue Type: Feature Request
          Components: BPM
    Affects Versions: 2.0.0.GA
            Reporter: Marcus Schmidke

In a non-Seam-EJB3-environment it is possible to configure jBPM such that EJB3 entity beans can be used as process variables.
It would be nice if that would be even supported by Seam's jBPM support.

Why doesn't it work today? The reason is in the way you combine jBPM and EJB3:

- reference jBPM's hibernate.cfg.xml from persistence.xml such that the EJB3 PersistenceManager knows not only about EJB3 entities but also about jBPM entities
- tell jBPM not to use it's own SessionFactory, but to get it from JNDI
- tell jBPM not to create Hibernate sessions on it's own but inject the current Hibernate Session from PersistenceManager

The last point is the problem with Seam. The injection has to be done manually every time a jbpmContext is created (via jbpmContext.setSession()), and Seam does not offer any hook to do this when it takes control over jbpmContext management.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list