[OFBiz] Users - RE: Users Digest, Vol 9, Issue 9

Ashish Hareet Ashish.Hareet at cpbinc.com
Mon Apr 4 19:41:13 EDT 2005


Thanks for the prompt response Ryan. Based on your comments, I think the problem 
could be the that the services I'm accessing via my simple-methods are in their 
own seperate transactions & hence the rollback is not effecting as a whole(like you said).

So, I'm gonna try to wrap up the requirements in my own custom services,
based on the simple-methods that I need from the existing ones. 

Will get back, once done

Thanks
Ashish Hareet









-----Original Message-----
Message: 4
Date: Mon, 4 Apr 2005 17:02:05 -0600
From: "Ryan Warnick" <warnickr_1 at isp01.net>
Subject: RE: [OFBiz] Users - Transaction rollbacks
To: "'OFBiz Users / Usage Discussion \(High Traffic\)'"
	<users at lists.ofbiz.org>
Message-ID: <003c01c5396a$527a71c0$5b00a8c0 at HRWWARNICKR>
Content-Type: text/plain;	charset="us-ascii"

Is your entire simple-method wrapped in a transaction?  The easiest way
to do this is to make it a service.  By default, a service forces
everything that a service does to be wrapped in a transaction.  This
means that it will create a new transaction if one doesn't already
exist.  The other thing that could cause this to happen even if the
outer simple-method is wrapped in a transaction is if every service call
in the simple-method is wrapped in its own transaction
(require-new-transaction = "true").  In either case, a failure in one
service call wouldn't cause the all of the work done in the
simple-method to roll back.  Based on my experience with the services
that you are referring to, I would say that your problem is the latter.

Ryan


More information about the Users mailing list