tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glenn Nielsen <>
Subject Re: DBTags using jndiName
Date Wed, 01 Aug 2001 01:56:35 GMT
That of course is if your are using the FSContext provider.
The jndiName is dependent upon the servlet container and its
configuration.  The example is for Tomcat 4.

Glad you figured it out, and thanks for reporting it.



Mark Shead wrote:
> I finally got the tags working with the jndi.  For anyone trying to do the
> same thing it needs to be file:/<directory>/<bound_name>.
> Mark
> -----Original Message-----
> From: Mark Shead []
> Sent: Saturday, July 28, 2001 3:52 PM
> To:
> Subject: DBTags using jndiName
> I'm probably missing something very simple here, but I can't seem to find
> any information on the correct form of a jndiName for the DBTag connection.
> I have bound a datasource to a name using JNDI and I have a test program
> that uses this connection to get information out of a database, but I can't
> seem to figure out how to get it to work using the DBTags.
> I thing my problem is with the jndiName.  The example from the docs looks
> like this:
> <sql:connection id="conn1" jndiName="java:/comp/jdbc/test"/>
> I'm not really sure what the java:/comp/jdbc/ part of things is supposed to
> be set to.  I'm assuming that "test" is the name that the datasource is
> bound to.
> I'm attempting to use the FSContext provider.   Should I use something like
> "file:/comp/jdbc/test"?  Or should it be something like "file:/test" or
> "file:/.bindings/test" None of these seem to work for me, but there may be
> another place things need to be configured that I'm not aware of yet.
> Thanks for any help or any suggestions on where I should look.
> --Mark

Glenn Nielsen    | /* Spelin donut madder    |
MOREnet System Programming               |  * if iz ina coment.      |
Missouri Research and Education Network  |  */                       |

View raw message