[jboss-user] [jBPM] - unable to begin transaction manager for jbpm human task

Avneesh Sisodia do-not-reply at jboss.com
Tue Sep 25 05:40:30 EDT 2012


Avneesh Sisodia [https://community.jboss.org/people/avneesh] created the discussion

"unable to begin transaction manager for jbpm human task"

To view the discussion, visit: https://community.jboss.org/message/761310#761310

--------------------------------------------------------------
Hi,
When i am creating id of jta transaction manager in spring config file it is siccessfuly created.
But I want to use "*setTransactionManager()*" it is not setting transaction manager.
code in class:

ApplicationContext ctx = AppContext.getApplicationContext(); 
        
        TaskSessionSpringFactoryImpl springFactory = (TaskSessionSpringFactoryImpl) ctx.getBean("springTaskSessionFactory");    
        TransactionManager taskTx = new DroolsSpringTransactionManager(transactionManager);       
        springFactory.setTransactionManager( taskTx);
        springFactory.initialize();


transactionManager passing into DroolsSpringTransactionManager is AbstractPlatformTransactionManager' object and having following values
 https://community.jboss.org/servlet/JiveServlet/showImage/2-761310-19564/transactionManager.png  https://community.jboss.org/servlet/JiveServlet/downloadImage/2-761310-19564/450-352/transactionManager.png 

*DroolsSpringTransactionManager*  taking this transactionManager and returning following taskTx

 https://community.jboss.org/servlet/JiveServlet/showImage/2-761310-19565/ptm.png  https://community.jboss.org/servlet/JiveServlet/downloadImage/2-761310-19565/450-369/ptm.png 
Inside *DroolsSpringTransactionManager* controller is not going to *begin()* method thats why current Transaction is returning *null* from there.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/761310#761310]

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/20120925/c6dd06d4/attachment.html 


More information about the jboss-user mailing list