Re: Once again :-) Question on Transaction support
Michael Nash <[email protected]> Sun, 08 Aug 2004 17:34:08 -0400
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Organization | JGlobal Limited |
| Message-ID | <[email protected]> |
Carlos: On Sun, 2004-08-08 at 16:52, Carlos Cardenas wrote: > Hi again, > > Thanks for your previous answers, most helpful :-) > > now, is there any direct support for transactions in keel? Well, at some levels yes. E.g. for persistence the API supports the concept of a "transaction" (typically a database-level transaction). But there is not general-purpose support for something like JTA, as most other services (other than JDO and Persistence) are not transactional. OTOH, I seem to recall something about Avalon/Fortress-level transaction support - and as Keel is built on top of that.... something to research :-) > I don't remember seeing this anywhere in the docos. Is there a > transactable interface for components (entity and service components) > ? > > If not, is there any plans for this? I think spring do deal with > transactions, can we piggy back on the concepts they use? Is the way Spring does Transactions oriented around persistence, or generic enough to become a lifecycle event in Fortress (for example). I'm thinking something along the lines of a "TransactionEnabled" interface (like LogEnabled), that might have the kind of generic transaction hooks such as "begin()", "commit()", "rollback()".... Just thinking out loud, though... I'm all for not re-inventing any wheels :-) > in any case, would keel transactions be able to participate in a J2EE > (ejb) transaction ? I gues it's more like the other way around, since > using ejb's in keel is just one of the options. Certainly EJB's are an option, and EJBs called from Keel can participate in a transaction. HTH! Mike > > Please meknow. > > Thanks, Carlos >