You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Justin Robinson <ju...@venturenet.co.za> on 2011/05/17 18:28:50 UTC

Handling Transactions

I have this intermittent problem 2 services that run consecutively one save
data that the next needs.
I thought it was sorted out but am now back to it. When the lookup is done
it's not there but when I look it up though webtools it is there.

Is there a way to pragmatically close the transaction and then open a new
one to ensure that the data. Or does anyone have any other ideas on how to
handle this situation or what the problem might be...have really been
pulling my hair out over this for the last 2 days.

Any help would be appreciated.

-- 
Regards,
Justin
Venture-Net Research & Development

Re: Handling Transactions

Posted by MelonJaya <me...@gmail.com>.
basicly, you should avoid any race-condition.
as Ray mentioned, you can lookup the saved data through webtools.
or maybe you can explain more to your case? what do you try to achieve?

best regards,
Johnson Chandra



On Wed, May 18, 2011 at 9:38 AM, Ray Shi <ra...@gmail.com> wrote:

> If the saved data can be looked up through webtools, then it doesn't
> look like a transaction problem.
>
> Just wondering if the search result came from the cache.
>
> Cheers
> Ray
>
> On 18 May 2011 02:28, Justin Robinson <ju...@venturenet.co.za> wrote:
> > I have this intermittent problem 2 services that run consecutively one
> save
> > data that the next needs.
> > I thought it was sorted out but am now back to it. When the lookup is
> done
> > it's not there but when I look it up though webtools it is there.
> >
> > Is there a way to pragmatically close the transaction and then open a new
> > one to ensure that the data. Or does anyone have any other ideas on how
> to
> > handle this situation or what the problem might be...have really been
> > pulling my hair out over this for the last 2 days.
> >
> > Any help would be appreciated.
> >
> > --
> > Regards,
> > Justin
> > Venture-Net Research & Development
> >
>

Re: Handling Transactions

Posted by Ray Shi <ra...@gmail.com>.
If the saved data can be looked up through webtools, then it doesn't
look like a transaction problem.

Just wondering if the search result came from the cache.

Cheers
Ray

On 18 May 2011 02:28, Justin Robinson <ju...@venturenet.co.za> wrote:
> I have this intermittent problem 2 services that run consecutively one save
> data that the next needs.
> I thought it was sorted out but am now back to it. When the lookup is done
> it's not there but when I look it up though webtools it is there.
>
> Is there a way to pragmatically close the transaction and then open a new
> one to ensure that the data. Or does anyone have any other ideas on how to
> handle this situation or what the problem might be...have really been
> pulling my hair out over this for the last 2 days.
>
> Any help would be appreciated.
>
> --
> Regards,
> Justin
> Venture-Net Research & Development
>