Hi all,
Following a case that hang my application which blocks all transactions until
we restart. I just managed to reproduce the case study below that hangs my
application too.
Case : I have to update objects outside the user request/response loop.
Code A
===
I use an action inside a compone
The best thing to do is to cause a deadlock and then get a thread dump with
sudo jstack -F
That should make it much faster to track down.
Chuck
On 2013-07-10, at 12:23 PM, Jérémy DE ROYER wrote:
> Hi all,
>
> Following a case that hang my application which blocks all transactions until
>
(I've added the method mymethod() in the thread to find the right Thread in the
stack)
Conclusion : I think that to get the email() value of the contact, my app has
to fetch a parameter value (using another editing context).
Question, I replace
EOEditingContext
On 2013-07-10, at 12:58 PM, Jérémy DE ROYER wrote:
> (I've added the method mymethod() in the thread to find the right Thread in
> the stack)
>
> Conclusion : I think that to get the email() value of the contact, my app has
> to fetch a parameter value (using another editing context).
That doe
public synchronized String getValeurForParametre(String keyIn)
{
String strOut = (String)
_dictionnaireForParametres.objectForKey(keyIn);
if (strOut == null)
{
// log.info("Fetch key '" +
What would be best is if MyAppCRMAnnuaireContact.email() passed in its own
editing context (using the editingContext() method) to
MyAppCRMParametres.getValeurForParametre rather than keeping an editing context
in the application object.
Chuck
On 2013-07-10, at 2:18 PM, Jérémy DE ROYER wrote:
Yes, I will change it.
Thank's Chuck.
Jérémy
Le 10 juil. 2013 à 23:52, Chuck Hill a écrit :
> What would be best is if MyAppCRMAnnuaireContact.email() passed in its own
> editing context (using the editingContext() method) to
> MyAppCRMParametres.getValeurForParametre rather than keeping an e
Many thanks for the help.
After 10 years of development with WebObjects, many times reading the holy book
(Practical WebObjects !), I finaly understand EOEditingContext and
EOObjectCoordinator and the reason why my app was deadlocked.
It is a small step for Chuck (is it even a step ?), but a bi