Re: [jira] Created: (CAY-1311) rename 'cayenne.test.connection' to 'cayenneTestConnection' and add configurations variables for tests

From: Andrey Razumovsky (razumovsky.andre..mail.com)
Date: Wed Nov 18 2009 - 05:34:41 EST

  • Next message: Andrus Adamchik: "Re: [jira] Created: (CAY-1311) rename 'cayenne.test.connection' to 'cayenneTestConnection' and add configurations variables for tests"

    I see. Actually here we use other approach. We have

    "cayenne.xml" - that is looking to DB via driver.xml and JDBC
    "cayenne.xml.web" - that is looking via JNDI.

    They both refer to same dataMap. In development we use cayenne.xml, during
    the build process we replace it with cayenne.xml.web (using Ant or Maven).
    No weird jars are required!

    2009/11/18 Andrus Adamchik <andru..bjectstyle.org>

    >
    > On Nov 18, 2009, at 12:22 PM, Andrey Razumovsky wrote:
    >
    > 2009/11/18 Andrus Adamchik <andru..bjectstyle.org>
    >>
    >> (did we use in the past in situations similar to the current JNDI hack??)
    >>>
    >>>
    >> Andrus, could you describe more in detail this JNDI hack? I wish we could
    >> get rid of cayenne-modeler.jar
    >>
    >
    > http://cayenne.apache.org/doc/using-jndi.html
    >
    > (see "Development with JNDI DataNodes")
    >
    > The reason why Modeler is need is to read the preferences DB. I am planning
    > to replace custom Cayenne-driven Modeler preferences DB with standard Java
    > Preferences API, and move all the preference read code to Cayenne core. Then
    > we can get rid of Modeler dependency for JNDI hack.
    >
    > Andrus
    >

    -- 
    Andrey
    



    This archive was generated by hypermail 2.0.0 : Wed Nov 18 2009 - 05:35:36 EST