Re: globalIDForObject without a lock

Raghavender Bokka <[email protected]> Fri, 21 Nov 2014 18:52:54 +0530
Newsgroups gmane.comp.web.webobjects.wonder-disc
Message-ID <[email protected]>
Hello Ken,

I have extended ERXApplication to my Application, ERXSession to my Session,=
 and ERXDirectAction to my DirectAction classes.

Replaced all new EOEditingContext() to ERXEC.newEditingContext() throughout=
 my application in order to automatically take care of locking and unlockin=
g.

In my Session class we have "defaultEditingContext()" method used and in ot=
her class we have "session().defaultEditingContext()" used.

And no where in our application we have explicitly handled lock() or unlock=
() methods for any editing contexts.

Please advise to which editing contexts in the above mentioned, do I have t=
o lock and unlock the contexts manually.

Thanks,
Raghu.

On 21-Nov-2014, at 6:34 PM, Raghavender Bokka wrote:

> Hello Ken,
> =

> I am creating "ERXEC.newEditingContext()" in our application code, other =
than the "defaultEditingContext()" in the Session.java and "session().defau=
ltEditingContext()" in some other few classes.
> =

> Do I have to lock the "ERXEC.newEditingContext()"? Will the ERX framework=
 does not auto lock and unlock when I use the ERX framework and extended th=
e ERXApplication and ERXSession classes?
> =

> Thanks,
> Raghu.
> =

> On 21-Nov-2014, at 6:17 PM, Ken Anderson wrote:
> =

>> If you are creating your own editing contexts and not using the session=
=92s default editing context, you have to lock those contexts manually.
>> =

>>> On Nov 21, 2014, at 7:27 AM, Raghavender Bokka <raghavender.bokka@prith=
visolutions.com> wrote:
>>> =

>>> Hi Team,
>>> =

>>> We are getting deadlocks in our production environment. The following i=
s the warning message generated in the log files when we enabled the ERX lo=
gging. We are using Project Wonder ERXEC.newEditingContext() throughout the=
 application and we do not have any explicit lock or unlock code in the app=
lication:
>>> =

>>> ----------------------------------------------------------
>>> 9201362 [WorkerThread93] WARN er.extensions.ERXEC.LockLogger  - called =
method globalIDForObject without a lock, ec=3Der.extensions.eof.ERXEC@1296d=
1d
>>> ----------------------------------------------------------
>>> =

>>> Any help would be appreciated.
>>> =

>>> Thanks,
>>> Raghu.
>>> =

>>> -----------------------------------------------------------------------=
-------
>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>> with Interactivity, Sharing, Native Excel Exports, App Integration & mo=
re
>>> Get technology previously reserved for billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=3D157005751&iu=3D/4140/os=
tg.clktrk
>>> _______________________________________________
>>> Wonder-disc mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/wonder-disc
>> =

>> =

> =




---------------------------------------------------------------------------=
---
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=3D157005751&iu=3D/4140/ostg.c=
lktrk