Transactions on Tool Activities

[email protected] Mon, 11 Dec 2006 14:51:45 +0100
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1165845136-11279-74
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi all,

   I understand that for all handling I do on activities and processes I must manually create the UserTransaction and call the begin() and commit(), and that's OK. However, what is the behavior for tool activities with automatic start and automatic end? Imagine the following scenario:

  Start -> Activity A (no implementation) -> Activity B (three mapped tools in a row) -> Finish

  Suppose that Activity A has manual start and manual end. Suppose that the user (through some Shark client application) starts and completes the Activity A, calling the transaction.begin() just before doing it and calling the transaction.commit() just after doing that. I suppose now that Shark engine is going to invoke the three tool activities, right? However, who's going to create the user transaction, call the begin() just before invoking the tools and call the commit() just after that? I mean, these must be done or else the start/completion of Activity B will not be performed on the Shark engine database, right?
  Also, if it is done somewhere, can you ensure me that the begin() is called before invoking the first tool, and that the commit() is called just after invoking successfully the third tool?
  Finally, is there any means to use the Shark engine-created transaction for the tool activity on the invoked tools? I mean, these tools will be mapping applications which are in fact Java façades to database operations, and I would like to only "complete" the tool activity only if these three operations are successful, and vice-versa, only to commit the results of the three operations if the Shark engine DB is successfully updated.

Thanks in advance!

Regards,

Fuad Abinader


------------=_1165845136-11279-74
Content-Type: text/plain; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: 8bit


--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

------------=_1165845136-11279-74--