• Post Reply Bookmark Topic Watch Topic
  • New Topic

Container Managed Transactions for Web Components  RSS feed

 
Vijay Chandran
Ranch Hand
Posts: 186
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends,

I create a JSP and a servlet which i package into a WAR file. I deploy that WAR file it into an application server, for example, WebSphere. I do a JDBC from my servlet(Not a 3-tier application) and execute a query.


How can i do container managed transactions for this servlet or is it possible doing that?

Kindly provide your help.

Thanks & Regards,
Vijay
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Servlet container does not provide this functionality, its functionality of the EJB container. You can use JTA and programatically manage transactions if you like.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!