spartacus
28th November 2008, 11:51
Are there any rules of how to use "commit.tansaction" and "retry.point" in a DAL?
I can imagine that transaction handling in the hooks is done by Baan. In business methods you have do do it yourself. Looks somewhat logically for me, but how ist it really?
toolswizard
29th November 2008, 13:47
IMHO, you use the same rules as a DLL. However, I usually add a flag in the arguments to optionally use transaction management within the method. In a overview session, if you call a business method as a form function there is no transaction management, but if you call the same form function from a detail session you are in a transaction already and would not want transaction management in the business method. I think it is just good practice to have the option.
spartacus
2nd December 2008, 11:42
Hi William,
I agree with that.
In that special case, I just added a DB-access to a business object. Now I do a session-dependant commit, because some of the calling sessions do alreday a transaction handling otheres not.
Kind regards
Richard