JBoss Community

unable to begin transaction manager for jbpm human task

created by Avneesh Sisodia in jBPM - View the full discussion

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/downloadImage/2-761310-19564/450-352/transactionManager.png

 

DroolsSpringTransactionManager  taking this transactionManager and returning following taskTx

 

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

Start a new discussion in jBPM at Community