Yeah, basically, you can configure your datasource to be JNDI, then
deploy your application without changes. Doesn't matter if it's your
personal workstation, a development application server, a test
application server, or the production application server.
On 10/5/05, Andrus Adamchik <andru..bjectstyle.org> wrote:
> It is not related to multiple DataNodes (you can use it with a single
> node as well). It simply saves you a headache of configuring JNDI
> DataSource on your local machine. That helps if your deployment
> environment uses JNDI, and you want to avoid learning too much about
> Tomcat or Jetty XML formats :-)
>
> Andrus
>
>
> On Oct 5, 2005, at 7:45 PM, Bryan Lewis wrote:
>
> > Is there a more complete explanation somewhere of the value of
> > this? I'm
> > not getting why one would use this feature. Is it a cleaner way to
> > manage
> > multiple DataNodes? (Cleaner than creating multiple variants of
> > cayenne.xml.)
> >
> > Thanks.
> >
> >
> > ----- Original Message -----
> > From: "Andrus Adamchik" <andru..bjectstyle.org>
> > To: <cayenne-use..bjectstyle.org>
> > Sent: Wednesday, October 05, 2005 4:22 PM
> > Subject: Re: JettyPlus w/ Cayenne JNDIDataSourceFactory
> >
> >
> >
> >>
> >> 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 - 20:24:47 EDT