Hi.We have a code base which currently is using two different persistence framworks. Sometimes there is a situation where we have client code(client of the business code) that needs to persist data in both persistence framworks at the same time, in the same transaction ! We do currently have some trouble achieving this(sometimes the first persistence framework commits but the second fails) and we are going to rewrite transaction managment. Could anybody perhaps give any tips, hints, articles, patterns etc. that dicuss this problem and how to create a proper architecture. Thanks

TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations technology projects - with its network of technology-specific websites, events and online magazines.