JBoss Community

Re: Human Task Service transactions fail

created by Grigory Kalabin in jBPM - View the full discussion

I had an experiment: before a process start and after it I looked up the UserTransaction:


        try {
            logger.info("found: " + new InitialContext().lookup("java:comp/UserTransaction"));
        } catch (NamingException e) {
            logger.info("not found", e);
        }
        // start process code
 
        try {
            logger.info("found: " + new InitialContext().lookup("java:comp/UserTransaction"));
        } catch (NamingException ex) {
            logger.info("not found", ex);
        }
 

 

 

The name java:comp/UserTransaction I took from org.drools.persistence.jta.JtaTransactionManager which falls with NPE.

 

It still falls and in my log:

 

30974Thu Jan 01 12:39:35 MSK 1970INFOfound: org.jboss.tm.usertx.client.ServerVMClientUserTransaction@1033fb5com.example.my.jbpm.rest.ProcessManagementResourceshttp--127.0.0.1-8080-2
Note [note=]
31052Thu Jan 01 12:39:36 MSK 1970FINENo UserTransaction found at JNDI location [java:comp/UserTransaction]org.drools.persistence.jta.JtaTransactionManagerNioProcessor-2
Note [note=]
31159Thu Jan 01 12:39:37 MSK 1970INFOfound: org.jboss.tm.usertx.client.ServerVMClientUserTransaction@1033fb5com.example.my.jbpm.rest.ProcessManagementResourceshttp--127.0.0.1-8080-2
Note [note=]

Reply to this message by going to Community

Start a new discussion in jBPM at Community