• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Usage of JTA for Servlets

 
Malli Raman
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • 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
 
Rohan Patil
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic