-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Transaction over several actions
PostPosted: Mon Sep 12, 2005 11:48 am 
Newbie

Joined: Thu Sep 01, 2005 12:28 pm
Posts: 9
Maybe I didn't read good enough the manual, but how can I make an application data to be commited to the DB after several user actions?

What do I need:

I am using struts for a web application and I want to collect the data from the user input from several forms and then save it in the DB. At the moment I am making updates in the DB but not flushing/committing them, assuming that they will still be there when I reuse my current session. I used the sample from the documentation about how to make a Tomcat application. However when I try to execute session.flush() I get a NullPointerException.

Is there an example where I can see how can this be done. A Rollback example would be nice too.

Thanks in advance


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.