I would a single method in a manager to call the three DAOs you need to.
Matt On 3/21/07, romsrini <[EMAIL PROTECTED]> wrote:
Hello, We have a situation where we have to create new rows in three different tables for a given user action. For example, we have to create a new row in a message table, and using the id of that row, create new rows in a messageComponent table and a messageRecipient table. Right now we have managers for each of those tables (each maps directly to a model and dao class) and our struts action makes calls to all three managers to control the transaction. I know there has to be a better way to do this. Either using config files or just one method in one manager. Any suggestions would be greatly appreciated. Thanks, Rom -- View this message in context: http://www.nabble.com/Whats-the-best-way-to-create-a-transaction-spanning-multiple-tables--tf3444205s2369.html#a9604678 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
