• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Question about BMT

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
In a BMT session bean, why I can use java.sql.Connection.commit() method between UserTransaction.begin and UserTransaction.commit on Weblogic Server6.1:
1)UserTransaction.begin()
2)...
3)java.sql.Connection.commit()
4)UserTransaction.commit()
Is it because the JTA transaction isn't begin yet? If this is the case, how to check whether the JTA transaction begin and why it doesn't begin?
Thank you,
Tom
[ January 15, 2003: Message edited by: Tom Chen ]
 
Ranch Hand
Posts: 8948
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
You are not supposed to use connection.commit()
It is illegal.
 
reply
    Bookmark Topic Watch Topic
  • New Topic