Re: Cross Database Queries

2012-06-21 Thread Gary Jarrel
Thank you Andrus, I was working on it for ages, and then started to run out of time and rewrote the code to do the join in the code rather than the DB as the number of records in each table was not very large. I will give it a try with the schemas in both DataMaps and see how I go. I did have the 2

Re: Cross Database Queries

2012-06-15 Thread Andrus Adamchik
In our case it turned out a relationship query with a join across DataNodes. Since both DBs were on the same server, and such join was supported in theory, it was fixed by specifying schemas for all tables in 2 DataMaps. If the DBs are on different servers and joins are not possible, I guess you

Re: Cross Database Queries

2012-06-14 Thread Andrus Adamchik
Gary, just stumbled on something similar in one of our client projects. Investigating... Stay tuned. Andrus On Jun 12, 2012, at 10:48 AM, Andrus Adamchik wrote: > But what happens inside SelectQuery.route(..)? (the failing query is > SelectQuery, right?). This is where the DataNode to Query

Re: Cross Database Queries

2012-06-12 Thread Andrus Adamchik
But what happens inside SelectQuery.route(..)? (the failing query is SelectQuery, right?). This is where the DataNode to Query mapping logic is, so this is the place to look for clues. Andrus On Jun 6, 2012, at 11:47 AM, Gary Jarrel wrote: > I've been debugging & debugging, and for the life of

Re: Cross Database Queries

2012-06-06 Thread Gary Jarrel
I've been debugging & debugging, and for the life of me I can not find where the fault is, both DataNodes are set correctly, I just can't seem to see what I am missing. :( Any further thoughts?! Gary On Tue, Jun 5, 2012 at 10:41 PM, Gary Jarrel wrote: > Just tried it with an XMLPoolingDataSourc

Re: Cross Database Queries

2012-06-05 Thread Gary Jarrel
Just tried it with an XMLPoolingDataSourceFactory and got the same error. To the debugger it is! On Tue, Jun 5, 2012 at 10:06 PM, Gary Jarrel wrote: > Thank you Andrus, I'll run it through a debugger and see what could be > causing it, I also try perhaps using an XMLPoolingDataSourceFactory to >

Re: Cross Database Queries

2012-06-05 Thread Gary Jarrel
Thank you Andrus, I'll run it through a debugger and see what could be causing it, I also try perhaps using an XMLPoolingDataSourceFactory to see if it makes a difference. Will advise! G On Tue, Jun 5, 2012 at 10:01 PM, Andrus Adamchik wrote: > >> I am also using CayenneFilter to initialize Caye

Re: Cross Database Queries

2012-06-05 Thread Andrus Adamchik
> I am also using CayenneFilter to initialize Cayenne, This is fine. > but I think I was reading in one of the previous threads that CayenneFilter > is simple > and in more complex situations Srging or Guice should be used to initialize. I'd rephrase this advice as "Cayenne can be used with a

Re: Cross Database Queries

2012-06-05 Thread Gary Jarrel
Also could it have something to do with the fact that I have a flattened relationship from an entity jayExtranet to an etity in jay which goes via a many-to-many relationship table in the jayExtranet datasource? G On Tue, Jun 5, 2012 at 9:45 PM, Gary Jarrel wrote: > Hi Andrus, > > No there are n

Re: Cross Database Queries

2012-06-05 Thread Gary Jarrel
Hi Andrus, No there are not! I am also using CayenneFilter to initialize Cayenne, but I think I was reading in one of the previous threads that CayenneFilter is simple and in more complex situations Srging or Guice should be used to initialize. I've also read that there is only 1 ServerRuntime is

Re: Cross Database Queries

2012-06-05 Thread Andrus Adamchik
g that 'dbo.client_contracts' comes from jay data > source. > > Thank you > > Gary > On Tue, Jun 5, 2012 at 9:14 PM, Bryan Lewis wrote: >> I got cross-database queries working just recently, with a boost from >> Michael Gentry. I'd guess the culprit is

Re: Cross Database Queries

2012-06-05 Thread Gary Jarrel
'dbo.client_contracts' comes from jay data source. Thank you Gary On Tue, Jun 5, 2012 at 9:14 PM, Bryan Lewis wrote: > I got cross-database queries working just recently, with a boost from > Michael Gentry.  I'd guess the culprit is that your nodes are missing the >

Re: Cross Database Queries

2012-06-05 Thread Bryan Lewis
I got cross-database queries working just recently, with a boost from Michael Gentry. I'd guess the culprit is that your nodes are missing the datasource. For example: wrote: > Hi Guys, > > Just started a new project using Cayenne 3.1M3 set up some test code > to see whet

Cross Database Queries

2012-06-04 Thread Gary Jarrel
Hi Guys, Just started a new project using Cayenne 3.1M3 set up some test code to see whether I can get the cross database queries to work, but it seems that every time I run a query across the 2 database it tries to use the 1 database and hence crashes out with