• 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

Usage of JTA for Servlets

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using jsp,servlets,oracle Database (Single Database) and weblogic Server. My application will interact with 50 tables. How to take care the transaction control. Which one is advisable, JDBC API based Transaction commit & Rollback OR JTA based Transation (UserTransaction methods like begin(), commit and Rollback).
I am not going to use any EJB and RMI for this applications.
Just because having weblogic server whether we have to use the JTA or what?
Thanks & Regards,
M.S.Raman
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi !
If you are not using EJB, then use in your JSP or Servlet
con.setAutoCommit(false);
After doing your trans. processing, use
com.commit() or com.rollback() as per ur req.
 
Malli Raman
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Rohan Patil:
Hi !
If you are not using EJB, then use in your JSP or Servlet
con.setAutoCommit(false);
After doing your trans. processing, use
com.commit() or com.rollback() as per ur req.



Thanks for your Information. But what will happen if i use JTA? Is there any performance problem if we use JTA for Servlet based application.
Regards,
M.S.Raman.
 
Malli Raman
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Rohan Patil:
Hi !
If you are not using EJB, then use in your JSP or Servlet
con.setAutoCommit(false);
After doing your trans. processing, use
com.commit() or com.rollback() as per ur req.



Thanks for your Information. But what will happen if i use JTA? Is there any performance problem if we use JTA for Servlet based application.
Regards,
M.S.Raman.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic