[jboss-user] [jBPM] - Re: Human Task Service transactions fail

Grigory Kalabin do-not-reply at jboss.com
Wed Oct 3 04:58:05 EDT 2012


Grigory Kalabin [https://community.jboss.org/people/gkalabin] created the discussion

"Re: Human Task Service transactions fail"

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

--------------------------------------------------------------
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: 

| 30974 | Thu Jan 01 12:39:35 MSK 1970 | INFO | found: org.jboss.tm.usertx.client.ServerVMClientUserTransaction at 1033fb5 | com.example.my.jbpm.rest.ProcessManagementResources | http--127.0.0.1-8080-2 | 
 | Note [note=] |
| 31052 | Thu Jan 01 12:39:36 MSK 1970 | FINE | No UserTransaction found at JNDI location [java:comp/UserTransaction] | org.drools.persistence.jta.JtaTransactionManager | NioProcessor-2 | 
 | Note [note=] |
| 31159 | Thu Jan 01 12:39:37 MSK 1970 | INFO | found: org.jboss.tm.usertx.client.ServerVMClientUserTransaction at 1033fb5 | com.example.my.jbpm.rest.ProcessManagementResources | http--127.0.0.1-8080-2 | 
 | Note [note=] |
--------------------------------------------------------------

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

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/20121003/d3478506/attachment.html 


More information about the jboss-user mailing list