Well, despite rather poor turnout, the consensus seems
to be 2-1 for JNDI support within the taglib, which
means I lose! :) Oh well, you win some, you lose
some.
Glenn, would you be willing to make the necessary
changes to the connection tag and the documentation?
I think an optional attribute called "jndiName" would
be just the thing, agreed? So that would be three
possible ways to obtain a driver: the driver tag, the
dataSource attribute, or the jndiName attribute.
- Morgan
--- Rich Catlett <[EMAIL PROTECTED]> wrote:
> I agree on this point with Glenn it would make usage
> of the jdbc taglib
> easier. I say include support.
>
>
---------------------------------------------------------------------
> Rich Catlett
>
> On Wed, 21 Feb 2001, Glenn Nielsen wrote:
>
> > The JNDI tag lib is great for general JNDI usage.
> But
> > a JDBC jndi data source is only usable by a tag
> lib
> > designed to do JDBC. Adding support to get a dB
> > connection from a named jndi jdbc data source is
> trivial.
> > This change makes it simpler to use the jdbc tag
> set when the
> > servlet container provides jdbc connections via a
> > jndi data source.
> >
> > My vote is to include support in the jdbc tag lib
> for
> > named jndi jdbc data sources directly.
> >
> > Regards,
> >
> > Glenn
> >
> > Morgan Delagrange wrote:
> > >
> > > Hi all,
> > >
> > > My feeling is that, since we have a JNDI taglib,
> we
> > > should use that for JNDI access rather than
> lacing
> > > JNDI code throughout other taglibs. In general,
> I
> > > think we should incourage interoperation between
> > > taglibs. However, I'm not a big JNDI proponent,
> so I
> > > do have some bias.
> > >
> > > What do you all think? If any of you are
> familiar
> > > with the JNDI taglib, are we losing
> functionality by
> > > adding a "jndiName" attribute to the connection
> tag
> > > rather than using the JNDI taglib? I'm trying
> to
> > > reserve my judgement until I have all the facts.
> > >
> > > - Morgan
> > >
> > > --- Glenn Nielsen <[EMAIL PROTECTED]>
> wrote:
> > > > Morgan,
> > > >
> > > > In the current connect tag you can get a
> DataSource
> > > > from a Context
> > > > attribute. It would be nice if you could
> specify a
> > > > data source using
> > > > the JNDI name, and have the connect tag do the
> jndi
> > > > lookup directly.
> > > >
> > > > i.e.
> > > >
> > > > Context ctx = new InitialContext();
> > > > DataSource ds =
> (DataSource)ctx.lookup(jndiName);
> > > > Connection con = null;
> > > > if( userid == null )
> > > > con = ds.getConnection();
> > > > else
> > > > con = ds.getConnection(userid,password);
> > > >
> > > > Regards,
> > > >
> > > > Glenn
> > > >
> > > > Morgan Delagrange wrote:
> > > > >
> > > > > Hi all,
> > > > >
> > > > > The docs are updated and JDBC is ready to
> roll.
> > > > +1 to
> > > > > release now!
> > > > >
> > > > > Does anybody know how to add JDBC to the
> nightly
> > > > > build?
> > > > >
> > > > > - Morgan
> > > > >
> > > > > =====
> > > > > Morgan Delagrange
> > > > > Britannica.com
> > > > >
> > > > >
> __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Yahoo! Auctions - Buy the things you want at
> great
> > > > prices! http://auctions.yahoo.com/
> > > >
> > > > --
> > > >
> > >
>
----------------------------------------------------------------------
> > > > Glenn Nielsen [EMAIL PROTECTED] | /*
> Spelin
> > > > donut madder |
> > > > MOREnet System Programming | *
> if iz
> > > > ina coment. |
> > > > Missouri Research and Education Network | */
> > > > |
> > > >
> > >
>
----------------------------------------------------------------------
> > > > --
> > > >
> > >
>
----------------------------------------------------------------------
> > > > Glenn Nielsen [EMAIL PROTECTED] | /*
> Spelin
> > > > donut madder |
> > > > MOREnet System Programming | *
> if iz
> > > > ina coment. |
> > > > Missouri Research and Education Network | */
> > > > |
> > > >
> > >
>
----------------------------------------------------------------------
> > >
> > > =====
> > > Morgan Delagrange
> > > Britannica.com
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Auctions - Buy the things you want at
> great prices! http://auctions.yahoo.com/
> >
> > --
> >
>
----------------------------------------------------------------------
> > Glenn Nielsen [EMAIL PROTECTED] | /*
> Spelin donut madder |
> > MOREnet System Programming | * if
> iz ina coment. |
> > Missouri Research and Education Network | */
> |
> >
>
----------------------------------------------------------------------
> >
>
=====
Morgan Delagrange
Britannica.com
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/