aspose file tools
The moose likes Servlets and the fly likes transaction in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "transaction in jsp" Watch "transaction in jsp" New topic
Author

transaction in jsp

Mallika Kumar
Ranch Hand

Joined: Feb 15, 2001
Posts: 61
Hi,
I have two methods in my jsp page, which in turn call java beans, which call ejbs. I want both the methods to execute only if both of them return desired results. First method posts to a site, and the second method updates a table in the database. Now, if the post is unsuccessful, I'm not calling the update method. But if the post is successful, and the update fails, then I shouldn't be posting at all. I should be able to rollover the post. Is there a way to achieve this ?
Any response will be gladly appreciated.
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: transaction in jsp
 
Similar Threads
IS EJB CALL THROUGH SIMPLE JAVA CLASS ?
Two EJB problem
DBMain interface: lock - delete - unlock or lock/unlock within delete?
How to synch data in Ldap and Oracle in a single transaction?
How can I achieve this in JSPs?