[OFBiz] Users - How does thread synchronization work in storeOrder service?

David E. Jones jonesde at ofbiz.org
Mon Apr 3 11:11:01 CDT 2006


It's data level synchronization though, it's not thread sync'ing. This is pretty basic low-level Java and database stuff and there are quite a few good resources in the world if you want more information.

I imagine things are actually _very_ similar with .net and many other technologies that support threading and transactions.

-David


Vinay Agarwal wrote:
> I am using PostgreSQL with isolation level defined to be ReadCommitted. Does
> this mean, without having to go through a lot of documentation, that if I
> want thread synchronization, all I have to do is to start a transaction?
> 
> Regards,
> Vinay Agarwal
> 
> -----Original Message-----
> From: users-bounces at lists.ofbiz.org [mailto:users-bounces at lists.ofbiz.org]
> On Behalf Of David E. Jones
> Sent: Monday, April 03, 2006 8:31 AM
> To: OFBiz Users / Usage Discussion
> Subject: Re: [OFBiz] Users - How does thread synchronization work in
> storeOrder service?
> 
> 
> That data is going to the database and transaction management is done there.
> The transaction isolation level (see SQL or JTA references for details on
> what these mean) can be defined in the entityengine.xml file, subject (of
> course) to what the database supports.
> 
> -David
> 
> 
> Vinay Agarwal wrote:
>> Hello,
>>
>> How does the thread synchronization work in storeOrder service? This 
>> function is creating entities to mark used days for rental items, 
>> therefore, somehow it must be thread synchronized. Is there only one 
>> instance of this service at any time?
>>
>> Thanks in advance,
>>
>> Vinay Agarwal  
>>
>>
>> ------------------------------------------------------------------------
>>
>>  
>> _______________________________________________
>> Users mailing list
>> Users at lists.ofbiz.org
>> http://lists.ofbiz.org/mailman/listinfo/users
>  
> _______________________________________________
> Users mailing list
> Users at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users
>  
> _______________________________________________
> Users mailing list
> Users at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users


More information about the Users mailing list