Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to Handle Transaction Management in Servlets?

 
Deepak Lal
Ranch Hand
Posts: 561
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do we handle Transaction Management in Servlets ??Please explain in brief ?

Sample Code provided will be really appreciated.

If you have any links.Please share the same.

Thanks,
Deepak Lal
[ September 20, 2008: Message edited by: Bear Bibeault ]
 
Deepak Lal
Ranch Hand
Posts: 561
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please let me know the answer for the query :Transaction Management in Servlets.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

It's Javaranch policy not to simply provide code, see NotACodeMill for the policy on this.

Now in answer to your question I also recommend reading this Sun blueprint article

Hope that helps!
 
Deepak Lal
Ranch Hand
Posts: 561
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Martijn Verburg and all,
The Sun blue print article was helpful but can you explain me in simpler words how transaction is carried out in Servlets.
I'm new to Servlets and Transaction in Servlets is also a new concept to me,So requesting you to provide more details on the same

Help provided will be appreciated



--
Deepak lal
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Deepak Lal:
can you explain me in simpler words how transaction is carried out in Servlets.


In a short answer: they aren't.
This is why we use things like Transaction Managers to well... manage transactions.
If you would like to manage transactions manually, you can do something like this:


But then you could use that code nearly anywhere so it is not Servlet specific.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic