[jbpm-commits] JBoss JBPM SVN: r5987 - jbpm4/trunk/modules/devguide/src/main/docbook/en/modules.
do-not-reply at jboss.org
do-not-reply at jboss.org
Fri Dec 18 05:01:16 EST 2009
Author: jbarrez
Date: 2009-12-18 05:01:16 -0500 (Fri, 18 Dec 2009)
New Revision: 5987
Modified:
jbpm4/trunk/modules/devguide/src/main/docbook/en/modules/ch02-Incubation.xml
jbpm4/trunk/modules/devguide/src/main/docbook/en/modules/ch17-SpringIntegration.xml
Log:
Updated Spring and History-session-chain docs to reflect latest changes
Modified: jbpm4/trunk/modules/devguide/src/main/docbook/en/modules/ch02-Incubation.xml
===================================================================
--- jbpm4/trunk/modules/devguide/src/main/docbook/en/modules/ch02-Incubation.xml 2009-12-18 02:42:32 UTC (rev 5986)
+++ jbpm4/trunk/modules/devguide/src/main/docbook/en/modules/ch02-Incubation.xml 2009-12-18 10:01:16 UTC (rev 5987)
@@ -865,10 +865,10 @@
is fired. Multiple custom implementations are possible as follows:
<programlisting>
<transaction-context>
- <history-session-chain>
+ <history-sessions>
<object class="org.jbpm.test.historysessionchain.MyProcessStartListener" />
<object class="org.jbpm.test.historysessionchain.MyProcessEndListener" />
- </history-session-chain>
+ </history-sessions>
</transaction-context>
</programlisting>
The custom history sessions must be on the classpath when the jBPM configuration is parsed
@@ -885,6 +885,15 @@
}
</programlisting>
</para>
+ If you want to add the default history session implementation to your configuration, add the
+ following line to the transaction-context section:
+ <programlisting>
+<history-sessions>
+ <object class="org.jbpm.pvm.internal.history.HistorySessionImpl" />
+</history-sessions>
+ </programlisting>
+ If you are using the <emphasis role="bold">jbpm.default.cfg.xml</emphasis> import in your
+ configuration, this default history session implementation is already configured as above.
</section>
<section>
Modified: jbpm4/trunk/modules/devguide/src/main/docbook/en/modules/ch17-SpringIntegration.xml
===================================================================
--- jbpm4/trunk/modules/devguide/src/main/docbook/en/modules/ch17-SpringIntegration.xml 2009-12-18 02:42:32 UTC (rev 5986)
+++ jbpm4/trunk/modules/devguide/src/main/docbook/en/modules/ch17-SpringIntegration.xml 2009-12-18 10:01:16 UTC (rev 5987)
@@ -80,22 +80,18 @@
The Spring integration provides a special context, which is added to
the set of contexts where the jBPM engine will look for beans.
Using this SpringContext, it is now possible to retrieve beans from the
- Spring Application Context. For the Spring context to be known, a
- SpringConfiguration must be created. This class extends the JbpmConfiguration
- but will add itself as a context. The single constructor take the location of the jBPM configuration.
-
+ Spring Application Context. The jBPM process engine can be configured in a Spring
+ applicationContext.xml as follows:
<programlisting>
- <bean id="jbpmConfiguration" class="org.jbpm.pvm.internal.cfg.SpringConfiguration">
- <constructor-arg value="be/inze/spring/demo/jbpm.cfg.xml" />
- </bean>
- </programlisting>
- </para>
-
- <para>
- Using this configuration, a ProcessEngine can be created:
- <programlisting>
-<bean id="processEngine" factory-bean="jbpmConfiguration" factory-method="buildProcessEngine" />
+ <bean id="springHelper" class="org.jbpm.pvm.internal.processengine.SpringHelper">
+ <property name="jbpmCfg" value="org/jbpm/spring/jbpm.cfg.xml"></property>
+ </bean>
+
+ <bean id="processEngine" factory-bean="springHelper" factory-method="createProcessEngine" />
</programlisting>
+ Note that the <emphasis role="bold">jbpmCfg</emphasis> property for the SpringHelper is optional.
+ If a default jbpm.cfg.xml exists on the classpath (ie not in some package), this line can
+ be removed.
</para>
<para>
More information about the jbpm-commits
mailing list