Not enough information to help. Check out the JBossTS code, check the wiki and check the labs pages. You'll find examples of distributed transactions using JTS. You'll also see that none of them take 15 minutes to run through the commit protocol!