Re: Sharing a single DataMap between multiple DataNodes

From: Gili (cowwo..bs.darktech.org)
Date: Tue Sep 06 2005 - 11:13:48 EDT

  • Next message: Andrus Adamchik: "Re: Sharing a single DataMap between multiple DataNodes"

            I tried the 1.2 solution but I get:

    org.objectstyle.cayenne.ConfigurationException: [v.1.2-dev September 6
    2005] Error during Configuration initialization. [v.1.2-dev September 6
    2005] Load failures. Main configuration class:
    org.objectstyle.cayenne.conf.DefaultConfiguration, details:
             domain.node.name=localhost,
    domain.node.datasource=java:/comp/env/jdbc/desktopbeautifier, reason:
    DataSource load failed - Need to specify class name in environment or
    system property, or as an applet parameter, or in an application
    resource file: java.naming.factory.initial

            The Wiki says that the local datasource name must match the JNDI name.
    But what is the JNDI name? I tried matching the DataNode name. Am I
    supposed to match the "JNDI Location" string instead?

    Gili

    Andrus Adamchik wrote:
    > But 1.2 introduces an even cooler solution for JNDI vs. explicit driver
    > configuration problem:
    >
    > http://objectstyle.org/confluence/display/CAY/1.2+User+Guide
    >
    > (see "Loading JNDI DataNodes from Local Preferences" article).
    >
    > Andrus
    >
    >
    > On Sep 6, 2005, at 10:43 AM, Bryan Lewis wrote:
    >
    >> There's no requirement that a DataMap be associated with only one
    >> DataNode.
    >> Perhaps it appears that way in the Modeler, don't know about that,
    >> but the
    >> xml files are easily to edit. I've used both of the following ways:
    >>
    >
    >>>
    >>> I want to be able to access the same database using JDBC from
    >>> standalone applications and JNDI when running inside Tomcat. It is
    >>> possible for both to be used simultaneously. Modeler seems to improve
    >>> the artificial limitation that a DataMap may be associated with at most
    >>> a single DataNode. Is there possible to remove this limitation or is
    >>> there a workaround
    >
    >

    -- 
    http://www.desktopbeautifier.com/
    



    This archive was generated by hypermail 2.0.0 : Tue Sep 06 2005 - 11:13:48 EDT