[jboss-user] [jBPM] - Re: Problem Bitronix Transaction, Spring, Jbpm5.2
Ricardo Chiriboga
do-not-reply at jboss.com
Mon Jan 30 22:10:14 EST 2012
Ricardo Chiriboga [https://community.jboss.org/people/rachirib] created the discussion
"Re: Problem Bitronix Transaction, Spring, Jbpm5.2"
To view the discussion, visit: https://community.jboss.org/message/649562#649562
--------------------------------------------------------------
Hi rodri tes23, thank you for response
This the spring jbpm5 configuration file
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance" xmlns:tx=" http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx"
xmlns:util=" http://www.springframework.org/schema/util http://www.springframework.org/schema/util" xmlns:context=" http://www.springframework.org/schema/context http://www.springframework.org/schema/context"
xmlns:drools=" http://drools.org/schema/drools-spring http://drools.org/schema/drools-spring"
default-lazy-init="true"
xsi:schemaLocation="
http://drools.org/schema/drools-spring http://drools.org/schema/drools-spring http://drools.org/schema/drools-spring.xsd http://drools.org/schema/drools-spring.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd http://www.springframework.org/schema/util/spring-util.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/context/spring-context.xsd
">
<bean id="JbpmDataSource" class="bitronix.tm.resource.jdbc.PoolingDataSource"
init-method="init" destroy-method="close">
<property name="className"
value="bitronix.tm.resource.jdbc.lrc.LrcXADataSource" />
<property name="uniqueName" value="jdbc/testDS1" />
<property name="maxPoolSize" value="5" />
<property name="allowLocalTransactions" value="true" />
<property name="driverProperties">
<props>
<prop key="driverClassName">${jbpm.jdbc.driver}</prop>
<prop key="url">${jbpm.jdbc.url}</prop>
<prop key="user">${jbpm.jdbc.user}</prop>
<prop key="password">${jbpm.jdbc.password}</prop>
</props>
</property>
</bean>
<bean id="jbpmEntityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="persistenceUnitName" value="org.jbpm.persistence.jpa"></property>
<property name="persistenceXmlLocation" value="classpath:META-INF/persistence.xml"></property>
<property name="dataSource" ref="JbpmDataSource" />
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
<property name="database" value="ORACLE" />
<property name="showSql" value="true" />
</bean>
</property>
</bean>
<drools:kstore id="knowledgeStoreService" />
<drools:kbase id="knowledgeBase">
<drools:resources>
<drools:resource type="CHANGE_SET"
source="
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/javerianaSTP/LATEST/ChangeSet.xml http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/javerianaSTP/LATEST/ChangeSet.xml" />
</drools:resources>
<drools:configuration>
<drools:multithread enabled="true" max-threads="5" />
</drools:configuration>
</drools:kbase>
<drools:ksession id="jpaSingleSessionCommandService"
type="stateful" kbase="knowledgeBase">
<drools:configuration>
<drools:jpa-persistence>
<drools:transaction-manager ref="transactionManager" />
<drools:entity-manager-factory ref="jbpmEntityManagerFactory" />
</drools:jpa-persistence>
</drools:configuration>
</drools:ksession>
<bean class="org.jbpm.task.service.TaskService" id="taskService" >
<constructor-arg ref="jbpmEntityManagerFactory" />
<constructor-arg>
<bean class="org.drools.SystemEventListenerFactory"
factory-method="getSystemEventListener" />
</constructor-arg>
</bean>
<bean id="taskServiceSession" factory-bean="taskService" scope="prototype"
factory-method="createSession">
<property name="transactionType" value="local-JTA" />
</bean>
<bean class="org.jbpm.task.service.local.LocalTaskService" id="localTaskService" scope="prototype">
<constructor-arg name="taskServiceSession" ref="taskServiceSession" />
</bean>
<bean id="defaultJaverianaUserGroupCallbackImpl" class="org.jbpm.task.service.DefaultJaverianaUserGroupCallbackImpl"/>
<bean id="userGroupCallbackManager" class="org.jbpm.task.service.UserGroupCallbackManager"
factory-method="getInstance" />
<bean
class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetObject" ref="userGroupCallbackManager" />
<property name="targetMethod" value="setCallback" />
<property name="arguments">
<list>
<ref bean="defaultJaverianaUserGroupCallbackImpl"/>
</list>
</property>
</bean>
</beans>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/649562#649562]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120130/5d5f798c/attachment-0001.html
More information about the jboss-user
mailing list