[
https://jira.jboss.org/jira/browse/JBPM-1210?page=com.atlassian.jira.plug...
]
Andries Inze updated JBPM-1210:
-------------------------------
Attachment: spring-jbpm-v1.7z
I've created an example jbpm-spring integration module. It's not perfect, but a
direction for future implementations.
The filename is uploaded as attachment under jbpm-spring-v1.7z .
It comes with following features:
* Injection of a Spring configured Hibernate SessionFactory,
* AbstractTransactionSpringJbpmTestCase which is a transactional testcase. I believe that
for Spring integration, jBPM should refrain from running its own transaction management,
since Spring will handle this. This class should be enhanced with more
The jbpm configuration is slightly altered, removing the transaction interceptor, session
factory and setting the current="true" on the session.
I'm looking forward to any feedback!
spring configuration support
----------------------------
Key: JBPM-1210
URL:
https://jira.jboss.org/jira/browse/JBPM-1210
Project: JBoss jBPM
Issue Type: Feature Request
Components: PVM
Reporter: Tom Baeyens
Assignee: Mauricio Salatino
Priority: Minor
Fix For: jBPM 4.0.x
Attachments: spring-jbpm-v1.7z
The first goal is to create an EnvironmentFactory implementation that is based on spring
configuration.
The class to complete is org.jbpm.pvm.internal.env.SpringEnvironmentFactory
The SpringEnvironmentFactory should relate to a spring ApplicationContext, I believe.
The first thing to do is create a test that shows how a spring configuration can be used
to create hibernate sessions.
Something like this:
static EnvironmentFactory environmentFactory =
SpringEnvironmentFactory.parseResource("org/jbpm/pvm/spring/springbeans.xml");
Environment environment = environmentFactory.openEnvironment();
try {
Session hibernateSession = environment.get(Session.class);
assertNotNull(hibernateSession);
} finally {
environment.close();
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira