Re: problem creating standalone DataContext

From: Lothar Krenzien (lkrenzie..eb.de)
Date: Wed Jan 04 2006 - 10:53:25 EST

  • Next message: Tomi NA: "Re: Modeller M9 Problem"

    Thanks for your answer. I solved it by using DriverDataSourceFactory instead of JNDIDataSourceFactory. So now I have two cayenne config file. One for using in a web container and one without a container. But now I have a problem inserted a new object into the database. But that's another post ;)

    cayenne-use..bjectstyle.org schrieb am 04.01.06 16:44:20:
    >
    >
    > On Jan 4, 2006, at 9:27 AM, Lothar Krenzien wrote:
    > > For me it looks like that I have to set a JNDI resource. Normally
    > > it will be set in the context.xml which is loaded by a web
    > > container. But how can I specifiy the JNDI context when I run
    > > cayenne without a web-container ?
    >
    > Running JNDI service without a container is not for the weak of
    > heart. One option is to use an alternative cayenne.xml for testing
    > that uses DriverDataSourceFactory instead of JNDIDataSourceFactory.
    > Or you can take advantage of the new 1.2 feature - "Loading JNDI
    > DataNodes from Local Preferences", briefly mentioned on Wiki:
    >
    > http://objectstyle.org/confluence/display/CAY/1.2+User+Guide
    >
    > This way you can fake JNDI (for Cayenne purposes only) by creating a
    > DataSource via Modeler preferences. (Be aware that the last solution
    > is affected by the cross-platform Modeler bug in M9 discussed
    > recently; the solution is to get Modeler from the nightly build).
    >
    > Andrus

    ______________________________________________________________
    Verschicken Sie romantische, coole und witzige Bilder per SMS!
    Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193



    This archive was generated by hypermail 2.0.0 : Wed Jan 04 2006 - 10:53:31 EST