Dynamic (runtime) adding of DataNodes.

From: Evgeny Ryabitskiy (evgeny.ryabitski..mail.com)
Date: Tue Dec 15 2009 - 05:56:51 EST

  • Next message: ςΡΒΙΓΛΙΚ εΧΗΕΞΙ: "RE: XML file changes: dropping .driver.xml"

    As Andrus asked, I am starting this question in new thread.

    Every our library(module) has set of DomainMaps (we can't use only one
    DomainMap because our modules are really big).
    So each Module has it's "module1-cayenne.xml" that has set of DomainMaps.

    Idea is to use this configuration without DomainNodes that are
    strongly set in "module1-cayenne.xml" and declare only DomainMaps.

    Then create some ... fore example web service, add few
    modules/libraries to dependency ...
    Create only one DomainNode (in runtime) then load all DataMaps from
    "module1-cayenne.xml" , "module2-cayenne.xml" , .. etc and bind (add
    ref) all this maps to DomainNode of web service.

    So question is... if I could create DomainNode at runtime and bind
    DataMaps to it?

    Evgeny.



    This archive was generated by hypermail 2.0.0 : Tue Dec 15 2009 - 05:57:37 EST