• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need Urgent Help Using Tyrex and JTA

 
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am unable to find any sample code for using Tyrex's Transaction Manager and the JTA API. Can anyone help me here? There are a few things I need help with, but if you can help me on any of them that would be huge!
  • Setting up / Configuring Tyrex
  • Adding MS SQL as DataSource (and Transaction Domain? It's not clear what that means exactly) (I have the beta JDBC driver from MS)
  • Writing Code to execute a DB statement inside a transaction
  • Writing Code to make an object I create participate in a transaction, i.e. you can rollback setting something on my object. e.g. if you an object MyObject had a default "age" of 10 and you called MyObject.setAge( 25 ); and then called trans.rollback(); and then MyObject.getAge() it would return 10.


  • I looked on Java.sun.com for some info on using transactions but it appears that they do NOT want to promote Java developers learning the transaction API in that depth. Rather, they'd prefer that you only use the JTA as a client, e.g. through EJB Containers. Does anyone know of some tutorials or something on this stuff any where? I want to write my own transactionable objects/system but there's almost no info anywhere. And Tyrex's website has next to nothing in help too!
    - Robert
     
    "The Hood"
    Posts: 8521
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Moving to "Other API's".
     
    Beauty is in the eye of the tiny ad.
    a bit of art, as a gift, that will fit in a stocking
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic