As far as I remember, there was a problem with spring and JTA XA implementation.<br>Can you provide us a simple test case that fails? we can create a jira issue and work on it easily if we have that.<br>Greetings.<br><br><div class="gmail_quote">
On Wed, Apr 20, 2011 at 11:57 AM, gs76pl <span dir="ltr"><<a href="mailto:gstasica@pacemetrics.com">gstasica@pacemetrics.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
hi,<br>
<br>
i've been trying to setup my drools flow persistence layer to use spring<br>
transaction management (JTA) but it looks like some parts of the code are<br>
missing in 5.1.1 rendering the whole idea impossible.<br>
<br>
Whats happening is that when my transaction manager calls commit it gets<br>
NullPointerException because jpm variable in SingleSessionCommandService has<br>
never been set. It looks like it should be set in initTransactionManager<br>
method in line 233 but all that this line is a comment that reads:<br>
...else{<br>
// configure spring for JPA and distributed transactions<br>
}<br>
<br>
So is there any way to have spring managing JTA transactions?<br>
Sorry but it's been over a week for me trying to have drools persistence<br>
working and after all the problems so far i'm considering jbpm5 as something<br>
in a more "production ready state"<br>
<br>
i've found similar thread here<br>
<a href="http://drools.46999.n3.nabble.com/Drools-Spring-JPA-JTA-td2024942.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-Spring-JPA-JTA-td2024942.html</a> but<br>
till now nobody replied to it with any explanation<br>
<br>
below my spring config<br>
<br>
<bean id="droolsFlowEntityManagerFactory"<br>
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"<br>
p:dataSource-ref="droolsFlowDataSource"<br>
p:persistenceUnitName="org.drools.persistence.jpa"<br>
<br>
p:persistenceXmlLocation="classpath:/config/droolsflow/jpa/persistence.xml"><br>
<property name="jpaVendorAdapter"><br>
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"<br>
p:showSql="true" p:generateDdl="false" /><br>
</property><br>
</bean><br>
<br>
<bean id="bitronixTransactionManagerConfig"<br>
factory-method="getConfiguration"<br>
class="bitronix.tm.TransactionManagerServices"><br>
<property name="serverId" value="spring-btm" /><br>
<property name="warnAboutZeroResourceTransaction" value="true"></property><br>
</bean><br>
<br>
<bean id="bitronixTransactionManager" factory-method="getTransactionManager"<br>
class="bitronix.tm.TransactionManagerServices"<br>
depends-on="bitronixTransactionManagerConfig" destroy-method="shutdown" /><br>
<br>
<bean id="droolsFlowTransactionManager"<br>
class="org.springframework.transaction.jta.JtaTransactionManager"><br>
<property name="transactionManager" ref="bitronixTransactionManager" /><br>
<property name="userTransaction" ref="bitronixTransactionManager" /><br>
</bean><br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/drools-flow-persistence-doesn-t-work-with-spring-jta-bug-TODO-code-in-SingleSessionCommandService-inr-tp2843098p2843098.html" target="_blank">http://drools.46999.n3.nabble.com/drools-flow-persistence-doesn-t-work-with-spring-jta-bug-TODO-code-in-SingleSessionCommandService-inr-tp2843098p2843098.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br> - CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a> <br> - MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
- Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> <br> - Salatino "Salaboy" Mauricio -<br>