Re: Search order for cayenne.xml

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Sat Nov 20 2010 - 11:58:26 UTC

  • Next message: bogdan_voloshincu: "pls helppppp !!! cayenne.xml"

    On Nov 18, 2010, at 12:21 PM, Borut Bolčina wrote:

    > conf.addClassPath("database");
    >
    > is Cayenne also trying to load cayenne.xml from the root classpath or not?

    Yes.

    > The log says: "searching additional classpths..."
    >
    > I am asking this because I have a JAR which my web project depends on and
    > this jar has cayenne.xml also (at the root). I just wanna be sure if the
    > order is deterministic and if the root is searched at all in the above case.

    The order is deterministic as long as there's no multiple cayenne.xml files at the root or any given classpath location.

    Andrus



    This archive was generated by hypermail 2.0.0 : Sat Nov 20 2010 - 11:59:03 UTC