[jboss-jira] [JBoss JIRA] Closed: (JBPM-765) wrong example in configuring persistence factory
Tom Baeyens (JIRA)
jira-events at jboss.com
Thu Nov 16 08:01:41 EST 2006
[ http://jira.jboss.com/jira/browse/JBPM-765?page=all ]
Tom Baeyens closed JBPM-765.
----------------------------
Fix Version/s: jBPM 3.1.4
jBPM 3.2 alpha 2
Resolution: Done
Thanks for reporting.
The bean merge on the jbpm-context is a valid request, but it's too much work to implement properly.
> wrong example in configuring persistence factory
> ------------------------------------------------
>
> Key: JBPM-765
> URL: http://jira.jboss.com/jira/browse/JBPM-765
> Project: JBoss jBPM
> Issue Type: Bug
> Components: Documentation
> Affects Versions: jBPM 3.1.2
> Environment: 3.1.2 under AS 4.0.4
> Reporter: Wenbo Zhu
> Assigned To: Tom Baeyens
> Fix For: jBPM 3.1.4, jBPM 3.2 alpha 2
>
>
> The example from the user guide states:
> 7.2.2. The DbPersistenceServiceFactory
> The DbPersistenceServiceFactory itself has 3 more configuration properties: isTransactionEnabled, sessionFactoryJndiName and dataSourceJndiName. To specify any of these properties in the jbpm.cfg.xml, you need to specify the service factory as a bean in the factory element like this:
> <jbpm-context>
> <service name="persistence">
> <factory>
> <bean factory="org.jbpm.persistence.db.DbPersistenceServiceFactory">
> <field name="isTransactionEnabled"><false /></field>
> <field name="sessionFactoryJndiName">
> <string value="java:/myHibSessFactJndiName" />
> </field>
> <field name="dataSourceJndiName">
> <string value="java:/myDataSourceJndiName" />
> </field>
> </bean>
> </factory>
> </service>
> ...
> </jbpm-context>
> which should be:
> <jbpm-context>
> <service name="persistence">
> <factory>
> <bean name="persistence.factory"
> class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
> <field name="isTransactionEnabled">
> <false />
> </field>
> ....
> </bean>
> </factory>
> </service>
> ....
> </jbpm-context>
> Also, as a side feature request, it may be useful to allow a partial configuration (bean merge maybe), that is without repeating the unchanged <service>'s for configuring the persistence for jbpm-context.
> Thanks.
--
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 jboss-jira
mailing list