[rules-users] JpaManager - SingleSessionCommandService

drooRam rajeshram7 at yahoo.com
Wed Aug 11 13:10:29 EDT 2010


Hi,

  I am using bitronix transaction manager for oracle through tomcat... i
have set the transaction manager as follows : 

	    <bean id="BitronixTransactionManager"
factory-method="getTransactionManager"  
class="bitronix.tm.TransactionManagerServices"
	        destroy-method="shutdown" />
	        
	     <bean id="transactionManager"
class="org.springframework.transaction.jta.JtaTransactionManager">
			<property name="transactionManager" ref="BitronixTransactionManager" />
			<property name="userTransaction" ref="BitronixTransactionManager" />
	    </bean>

and finally passing this wrapped JtaTransactionManager to drools:ksession
tag, the following code has been invoked on SingleSessionCommandService for
the transactionManager ...

method initTransactionManager() on SingleSessionCommandService.java line #
218.

this tm class starts with "org.springframework", so it enters this block of
code..but it doesn't contains "jpa"
hence  JPAManager (jpm) is not being initialized...i cud see the else block
is hanging in this code....

Result : NullPointerException on calling the reference this.jpm.....

Question is that how should i configure JpaTransactionManager or
JtaTransactionManager for Drools ? 

i think that i followed a correct approach and there is a bug in
SingleSessionCommandService.java code? 

Please advice. Thanks

-drooRam


-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/JpaManager-SingleSessionCommandService-tp1090812p1090812.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list