Re: Nested contexts deadlock

2012-09-10 Thread Andrus Adamchik
; > But there's still a condition when that can happen. As a workaround you can > create nested contexts that are subclasses of DataContext, overriding > 'setChannel' (3.0.x) or 'attachToChannel' (3.1.x) to suppress this line: > > EventUtil.listenForChannel

Re: Nested contexts deadlock

2012-09-06 Thread Andrus Adamchik
Yeah, unfortunately this is a known problem that we need to solve: https://issues.apache.org/jira/browse/CAY-957 It was partially fixed in Cayenne 3.1: https://issues.apache.org/jira/browse/CAY-1653 But there's still a condition when that can happen. As a workaround you can create n

Nested contexts deadlock

2012-09-06 Thread Ramiro Aparicio
Hi, I have been debugging some strange errors in our web app that seems to be related to context and threads, let me explain, we are using Cayenne 3.0.1 using WebApplicationContextFilter to bind the context to threads, in some parts of the application is not so difficult to be processing seve

bug with nested contexts + map relationships? (3.0M5 & 3.0-SNAPSHOT)

2009-02-24 Thread Robert Zeigler
While working on a project, I had something like the following: ObjectContext child = parentContext.createChildDataContext(); List alist = lookupAs(); for(EntityA a : alist) { a = child.localObject(a.getObjectId(),null);//note: doing localObject(a.getObjectId(),a); still results in the except

Re: nested contexts

2009-01-13 Thread Andrus Adamchik
IIRC there were some locking jiras, but they will be treated as bugs, not as limitation by design. Andrus On Jan 13, 2009, at 2:29 PM, Aristedes Maniatis wrote: On 13/01/2009, at 11:09 PM, Andrus Adamchik wrote: On Jan 13, 2009, at 1:26 PM, Aristedes Maniatis wrote: I think it is a bu

Re: nested contexts

2009-01-13 Thread Aristedes Maniatis
On 13/01/2009, at 11:09 PM, Andrus Adamchik wrote: On Jan 13, 2009, at 1:26 PM, Aristedes Maniatis wrote: I think it is a bug, and relating objects should be allowed between parent/child contexts. Not so. Parent/child relationship determines the path of the select and commit operation

Re: nested contexts

2009-01-13 Thread Andrus Adamchik
On Jan 13, 2009, at 1:26 PM, Aristedes Maniatis wrote: I think it is a bug, and relating objects should be allowed between parent/child contexts. Not so. Parent/child relationship determines the path of the select and commit operations, but has no effect on the rule that each object be

Re: nested contexts

2009-01-13 Thread Aristedes Maniatis
On 13/01/2009, at 7:03 PM, Andrus Adamchik wrote: Another thing is that the http://cayenne.apache.org/doc/nested-datacontexts.html states that nested contexts are not available in ROP, is that still? Andrey has been working on the ROP version of nested contexts. I think it is (partially

Re: nested contexts

2009-01-13 Thread Andrus Adamchik
belongs to just one context, and no relationships between them are possible. Another thing is that the http://cayenne.apache.org/doc/nested-datacontexts.html states that nested contexts are not available in ROP, is that still? Andrey has been working on the ROP version of nested contexts. I

nested contexts

2009-01-12 Thread Marcin Skladaniec
Hi I have tried to use the nested contexts today. I tried a very simple thing, creating two objects one in the parent one in the child context, then linking them together: ObjectContext aContext = ContextManager.getNewContext(); ObjectContext childContext = aContext.createChildContext