You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Muzaffer Ozakca <mo...@indiana.edu> on 2007/06/08 21:20:20 UTC
Multiple cayenne.xml files
Hi all,
I have an application that uses Cayenne to connect to a DB (say DB-A). I
have another bunch of classes that connect to another DB (say DB-B).
Those two databases are completely unrelated. The classes from this
application are in a jar. I have cayenne.xml and other domain config
files in the first application's classes directory. cayenne.xml and
other config files for the second application are in the jar.
Now, I'm trying to use classes from the second app in the first app.
Understandably, cayenne is complaining that it cannot find the domain
for the second application.
I'm not sure if I was able to explain the problem clearly. Does anybody
know how to tell cayenne where it should look for db and domain config
files?
ps. I'm new to cayenne.
Thanks.
Re: Multiple cayenne.xml files
Posted by Muzaffer Ozakca <mo...@indiana.edu>.
I think the problem is solved. I followed the instructions on
http://cayenne.apache.org/doc20/customizing-configuration.html
The second alternative in the DefaultConfiguration title.
Thanks!
Muzaffer Ozakca wrote:
> Hi all,
>
> I have an application that uses Cayenne to connect to a DB (say DB-A). I
> have another bunch of classes that connect to another DB (say DB-B).
> Those two databases are completely unrelated. The classes from this
> application are in a jar. I have cayenne.xml and other domain config
> files in the first application's classes directory. cayenne.xml and
> other config files for the second application are in the jar.
>
> Now, I'm trying to use classes from the second app in the first app.
> Understandably, cayenne is complaining that it cannot find the domain
> for the second application.
>
> I'm not sure if I was able to explain the problem clearly. Does anybody
> know how to tell cayenne where it should look for db and domain config
> files?
>
> ps. I'm new to cayenne.
>
> Thanks.
>