[jboss-user] [jBPM] New message: "Re: integrating spring 2.5.6 with jbpm 4.3"
Ken Hoying
do-not-reply at jboss.com
Fri Mar 5 09:40:00 EST 2010
User development,
A new message was posted in the thread "integrating spring 2.5.6 with jbpm 4.3":
http://community.jboss.org/message/530186#530186
Author : Ken Hoying
Profile : http://community.jboss.org/people/khoying
Message:
--------------------------------------------------------------
This appears to have been changed. I just started with jBPM and seem to have it all up and running under Spring. My Spring configuration looks like this:
<bean id="springHelper" class="org.jbpm.pvm.internal.processengine.SpringHelper" />
<bean id="processEngine" factory-bean="springHelper" factory-method="createProcessEngine" />
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<!-- This config is for unit tests as the jar will not exist yet. -->
<!-- It does not work at runtime since the files will be located in a jar and hibernate will not pick them up. -->
<property name="mappingLocations">
<value>classpath*:**/*.hbm.xml</value>
</property>
<!-- This config does not work for unit tests as the jar will not exist yet. -->
<!-- It does work at runtime since the files will be located in a jar. -->
<property name="mappingJarLocations">
<list>
<value>classpath*:**/services.jar</value>
<value>classpath*:**/jbpm-pvm-*.jar</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.Oracle10gDialect
</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.generate_statistics">false</prop>
</props>
</property>
<property name="configLocation" value="classpath:jbpm.hibernate.cfg.xml" />
<property name="eventListeners">
<map>
<entry key="merge">
<bean class="org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener" />
</entry>
</map>
</property>
</bean>
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530186#530186
More information about the jboss-user
mailing list