Hi Evgeny,
does it use the default configuration which looks in top of classpath,
which is the src/main/java for me?
As Michael said he has his conf in src/main/resources and it works
without mentioning of overriding the default configuration. That
shouldn't play along, or should it?
Regards,
Evgeny Ryabitskiy wrote:
> Cayenne is looking for xml files in your jar/war by it's pass. pass is
> Relative (not absolute).
> So when you are building you jar/war you should care that this
> configuration files are placed in jar/war in same manner you are
> configured your application.
>
> You can use DefaultConfiguration / FileConfiguration to set path to cayenne.xml
>
> http://cayenne.apache.org/doc20/customizing-configuration.html
>
> Evgeny.
>
> 2009/12/31 Michael Gentry <mgentr..asslight.net>:
>
>> I put my Cayenne configuration files in src/main/resources, at least
>> for Maven projects.
>>
>> mrg
>>
>>
>> On Thu, Dec 31, 2009 at 6:39 AM, Marek Šabo <msab..uk.cvut.cz> wrote:
>>
>>> Hi everyone,
>>>
>>> I started using cayenne yesterday and got it up and running in my webapp
>>> alongside wicket. I have question about configuration files: can i put them
>>> somewhere else besides the source root (for wicket it is src/main/java) and
>>> then define that location somewhere - e.g. filter configuration in web.xml?
>>> Point is I would very much like to have it under src/main/resources (e.g.
>>> like hibernate does) but then I think it probably won't be able to
>>> traceroute the location of mapping classes from package name.
>>>
>>> TIA, regards
>>>
>>> --
>>> Marek Šabo
>>> Chief Server Manager
>>> Club SU CVUT Buben
>>> Bubenečská Kolej
>>> Terronská 28, Prague 16000
>>> XMPP: zeratul02..mail.com
>>>
>>>
>>>
>
>
-- Marek Šabo Chief Server Manager Club SU CVUT Buben Bubenečská Kolej Terronská 28, Prague 16000 XMPP: zeratul02..mail.com
This archive was generated by hypermail 2.0.0 : Thu Dec 31 2009 - 11:12:24 EST