[jboss-user] [jBPM] - Re: Local human task service doesn't participate in a JTA transaction

Jboss fan99 do-not-reply at jboss.com
Tue Mar 12 13:14:08 EDT 2013

Jboss fan99 [https://community.jboss.org/people/devinderpal] created the discussion

"Re: Local human task service doesn't participate in a JTA transaction"

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

  I'm not using my own TransactionManager. It's a transaction manager lookup class. May be name of the file is not best. 
It's a small lookup class that just returns transaction manager bound in *"java:jboss/TransactionManager"*

By defaut jBPM looks in java:/TransactionManager. That's why this lookup class was added. Below is the code of this class

public class MyCompanyTransactionManager implements TransactionManagerLookup {
        public Object getTransactionIdentifier(Transaction transaction){
                return transaction;
        public TransactionManager getTransactionManager(Properties props)
                        throws HibernateException{
                    return (TransactionManager) new InitialContext()
                catch (NamingException e)
                    throw new RuntimeException(e);
        public String getUserTransactionName(){
                return null;
        public static TransactionManager getTransactionManager(){
                return new MyCompanyTransactionManager().getTransactionManager(null);


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130312/6f9d32e0/attachment.html 

More information about the jboss-user mailing list