[JBoss JIRA] Commented: (JBPM-1210) spring configuration support
by Tom Baeyens (JIRA)
[ https://jira.jboss.org/jira/browse/JBPM-1210?page=com.atlassian.jira.plug... ]
Tom Baeyens commented on JBPM-1210:
-----------------------------------
Current state is that the basic persistence and transaction integration is done. The work done so far can be seen in test org.jbpm.pvm.api.spring.SpringTest and the corresponding resource file org/jbpm/pvm/api/spring/spring.beans.xml
The current test shows that inside of the environment block, the spring transaction is active and that 2 subsequent fetches of the transactional hibernate session return the same object.
Next task is that a process is deployed and executed. As that will require more objects to be configured in the spring xml. For each object that is needed, we'll have to see how constructors and setters will have to be added for the object to be easily configurable in spring.
> 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
>
> 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
16 years, 5 months
[JBoss JIRA] Updated: (JBPM-1217) check collections if they need a presence boolean
by Tom Baeyens (JIRA)
[ https://jira.jboss.org/jira/browse/JBPM-1217?page=com.atlassian.jira.plug... ]
Tom Baeyens updated JBPM-1217:
------------------------------
Priority: Minor (was: Major)
> check collections if they need a presence boolean
> -------------------------------------------------
>
> Key: JBPM-1217
> URL: https://jira.jboss.org/jira/browse/JBPM-1217
> Project: JBoss jBPM
> Issue Type: Task
> Components: PVM
> Reporter: Tom Baeyens
> Priority: Minor
>
> If in the code you need to know if there are elements in a collection, this will result into an extra query for the entities. If in most cases, the collection is empty, it might be an optimization to add a boolean pressence indicator next to the collection. The class could maintain that boolean to indicate if elements are available in the collection. That way, the extra query is saved if in the code you only need to do a collection-presence check.
> For sure this is useful for the ProcessChanges. But probably for a lot of the other collections as well.
> This shouldn't be applied blindfolded. Each case should be evaluated in terms of the number of times the presence check is executed in the code.
--
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
16 years, 5 months