Can't extract a master key

2008-07-30 Thread Dave Dombrosky
I am currently getting a strange exception when trying to commit some objects to the db. I'm hoping someone here can help me figure it out. org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT May 16 2008 12:28:23] Can't extract a master key. Missing key (id), master ID () at org.a

Can't extract a master key

2008-07-30 Thread Dave Dombrosky
I am currently getting a strange exception when trying to commit some objects to the db. I'm hoping someone here can help me figure it out. org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT May 16 2008 12:28:23] Can't extract a master key. Missing key (id), master ID () at org.

Re: Configuring which dataDomain to use in servlet container

2008-07-30 Thread Malcolm Edgar
This is exactly what I would recommend. regards Malcolm Edgar On Wed, Jul 30, 2008 at 7:00 PM, Ian Jamieson <[EMAIL PROTECTED]> wrote: > Funny how you figure things out once u already asked the dumb question ^^. > > I ended up writing a small class to take the place of > "WebApplicationContextFil

Re: Configuring which dataDomain to use in servlet container

2008-07-30 Thread Ian Jamieson
Funny how you figure things out once u already asked the dumb question ^^. I ended up writing a small class to take the place of "WebApplicationContextFilter". It can create a DataContext by domainName and then use DataContext.bindThreadDataContext(). Is there anything wrong with this approach ?

Configuring which dataDomain to use in servlet container

2008-07-30 Thread Ian Jamieson
Hi I'm trying to setup two services each in a seperate context under tomcat. I would like to get each context pointing to different dataDomains. How do I ask one context's DataContext.getThreadLocalContext() to use one dataDomain and the 2nd context to use the 2nd dataDomain? I am using Cayenne