Re: JettyPlus w/ Cayenne JNDIDataSourceFactory

From: Mike Kienenberger (mkienen..mail.com)
Date: Wed Oct 05 2005 - 16:50:21 EDT

  • Next message: Bryan Lewis: "Re: JettyPlus w/ Cayenne JNDIDataSourceFactory"

    Yes, automatic JNDI fallback to LocalDataSource is exactly the
    functionality I want. I can even switch containers at will and not
    worry about redefining my jndi connections, and when I deploy, it'll
    "just work" with no changes.

    I might "improve" the logging a little bit, if that's ok.
    I'd like to see what database the LocalDataSource connection is
    pointing to (url and user name) shown in the logs, providing that info
    is available.

    I've got my local databases, the client's dev databases, the client's
    testing database, and the client's production databases, so it's best
    to confirm that in the eclipse log when the application starts up.

    On 10/5/05, Mike Kienenberger <mkienen..mail.com> wrote:
    > Hey, that's really cool!
    > That seems like a far better way to be doing this on my dev box since
    > I only have to maintain the info in one place. Thanks!
    >
    >
    > On 10/5/05, Andrus Adamchik <andru..bjectstyle.org> wrote:
    > >
    > > On Oct 5, 2005, at 4:07 PM, Mike Kienenberger wrote:
    > >
    > > > Is anyone using JettyPlus with a Cayenne JNDIDataSourceFactory?
    > > >
    > > > I'm looking at the JettyPlus configuration file, and it appears that I
    > > > somehow have to manually construct a DataSource (possibly a pooled
    > > > data source) using "xml-syntax" java.
    > > >
    > > > Seems like there is either an easier way, or that maybe someone else
    > > > might have already done such a terrible thing....
    > > >
    > > > Thanks,
    > > >
    > > > -Mike
    > >
    > >
    > > I don't think there is an easier way on the Jetty side. Though once
    > > you figure this XML voodoo, Jetty rules - I was able to setup pretty
    > > complex multi-app environments runnable straight from Eclipse, with
    > > JDBC Realm authentication, etc. Don't have DataSource example though,
    > > sorry.
    > >
    > > If this is for your development machine, you can use "Loading JNDI
    > > DataNodes from Local Preferences" new feature though:
    > >
    > > http://objectstyle.org/confluence/display/CAY/1.2+User+Guide
    > >
    > > Andrus
    > >
    >



    This archive was generated by hypermail 2.0.0 : Wed Oct 05 2005 - 16:50:23 EDT