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">&lt;<a href="mailto:gstasica@pacemetrics.com">gstasica@pacemetrics.com</a>&gt;</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&#39;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&#39;s been over a week for me trying to have drools persistence<br>
working and after all the problems so far i&#39;m considering jbpm5 as something<br>
in a more &quot;production ready state&quot;<br>
<br>
i&#39;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>
&lt;bean id=&quot;droolsFlowEntityManagerFactory&quot;<br>
        class=&quot;org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean&quot;<br>
        p:dataSource-ref=&quot;droolsFlowDataSource&quot;<br>
p:persistenceUnitName=&quot;org.drools.persistence.jpa&quot;<br>
<br>
p:persistenceXmlLocation=&quot;classpath:/config/droolsflow/jpa/persistence.xml&quot;&gt;<br>
        &lt;property name=&quot;jpaVendorAdapter&quot;&gt;<br>
                &lt;bean class=&quot;org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter&quot;<br>
                        p:showSql=&quot;true&quot; p:generateDdl=&quot;false&quot; /&gt;<br>
        &lt;/property&gt;<br>
&lt;/bean&gt;<br>
<br>
&lt;bean id=&quot;bitronixTransactionManagerConfig&quot;<br>
factory-method=&quot;getConfiguration&quot;<br>
class=&quot;bitronix.tm.TransactionManagerServices&quot;&gt;<br>
        &lt;property name=&quot;serverId&quot; value=&quot;spring-btm&quot; /&gt;<br>
        &lt;property name=&quot;warnAboutZeroResourceTransaction&quot; value=&quot;true&quot;&gt;&lt;/property&gt;<br>
&lt;/bean&gt;<br>
<br>
&lt;bean id=&quot;bitronixTransactionManager&quot; factory-method=&quot;getTransactionManager&quot;<br>
        class=&quot;bitronix.tm.TransactionManagerServices&quot;<br>
depends-on=&quot;bitronixTransactionManagerConfig&quot; destroy-method=&quot;shutdown&quot; /&gt;<br>
<br>
&lt;bean id=&quot;droolsFlowTransactionManager&quot;<br>
class=&quot;org.springframework.transaction.jta.JtaTransactionManager&quot;&gt;<br>
        &lt;property name=&quot;transactionManager&quot; ref=&quot;bitronixTransactionManager&quot; /&gt;<br>
        &lt;property name=&quot;userTransaction&quot; ref=&quot;bitronixTransactionManager&quot; /&gt;<br>
&lt;/bean&gt;<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 &quot;Salaboy&quot; Mauricio -<br>