[jboss-jira] [JBoss JIRA] Created: (JBPM-765) wrong example in configuring persistence factory

Wenbo Zhu (JIRA) jira-events at jboss.com
Tue Oct 17 12:50:41 EDT 2006


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


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