It's not a secret anymore!*
The moose likes Servlets and the fly likes how to Handle Transaction Management in Servlets? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to Handle Transaction Management in Servlets?" Watch "how to Handle Transaction Management in Servlets?" New topic
Author

how to Handle Transaction Management in Servlets?

Deepak Lal
Ranch Hand

Joined: Jul 01, 2008
Posts: 507

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 ]

When The Going Gets Tougher,The Tougher gets Going
Deepak Lal
Ranch Hand

Joined: Jul 01, 2008
Posts: 507

Please let me know the answer for the query :Transaction Management in Servlets.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

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!


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Deepak Lal
Ranch Hand

Joined: Jul 01, 2008
Posts: 507

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

Joined: Mar 06, 2001
Posts: 13459

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to Handle Transaction Management in Servlets?