multiple project configurations

From: Miloš Bielik (bieli..yberos.sk)
Date: Sun Aug 23 2009 - 11:25:16 EDT

  • Next message: xiaoxin xiaoxin: "Re: Question: can Cayenne generate the DAO classes by modeler?"

    I'm new to cayenne, so I'll appreciate and welcome every hint or advice.

    I have developed web framework to build web portals. Now I plan refactor
    framework to use Apache Cayenne.
    I run multiple independent customer webapps running on one application
    server instance (tomcat). My framework is always managed and deployed
    per webapp (handling users, dms, cms, logs,...). Webapp handles only own
    domain objects (orders, invoices...).

    1. How can I configure cayenne to use *more configurations*/projects? I
    don't want always to merge framework's domains with webapp's ones for
    every new project/deployment.
    2. How can I setup the JNDI *DataSource names in runtime*?

    My proposed webapp structure is:
    /{webapp JSPs...}
    /WEB-INF/classes/{my webapp stuff}
    /WEB-INF/classes/{*cayenne.xml* ...config for webapp}
    /WEB-INF/lib/{frameworkUsingCayenne.jar, this jar contains framework's
    *cayenn.xml* config}

    -- 
    Bielik
    



    This archive was generated by hypermail 2.0.0 : Sun Aug 23 2009 - 11:26:18 EDT