Actually, transactions are either committed automaticly within there method call dao.save(someObject) or if i need to batch several operations in 1 transaction i let the onclick event commit the transaction for me. public void onclick() { Object obj=dao.batchLoad(id); dao.batchDelete(obj); dao.commit(); }
but thats just how we do things, remember i told you we rollback at the end of a request. you could just as easilly commit there then you would not have to worry about mixing transaction code all over wicket code. Maurice 2005/12/16, John Patterson <[EMAIL PROTECTED]>: > > > > It also creates a new transaction for every data operation which does not > > > allow for making multiple operations atomic. > > > > Not true. Our base dao has methods for batching saves, updates and the > > like that use the currently running transaction, with 1 single method > > call you can then commit this transaction whenever you want. > > > > So you have transaction related methods on your DAO? > > If so the user is responsible for defining the transaction boundary's. I > would prefer this to be automatically handled by the container OR by some > wicket specific handler. Separation of concerns and all that... > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user