You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rick Mann <rm...@latencyzero.com> on 2001/09/06 03:01:43 UTC

How to complete the link between InitialContext() and ?

I've read through Ch.5 of the J2EE 1.3 spec, looked at the Servlet 2.3 spec,
and poked around in the Tomcat docs. I'm not finding an answer to this
question:

How and where do I specify the signon information necessary to create a
proper DataSource object so that I can connect to my DB?

I have a Tomcat 4.0b7 running along with MySQL. I have/will created JDBC
2.0-derived classes to provide me with a DataSource for the MySQL db. I
understand how to specify a <resource-ref> in the web.xml file and I know
how to call InitialContext.lookup() to get a reference to the DataSource.

According to the J2EE 1.3 spec (J2EE.5.4.2, last paragraph), how and where
the specifics of creating a DataSource is up to the "container and resource
manager". Is there documentation on how I specify this in Catalina?

TIA,

------------------------------------------------------------
Roderick Mann               rmann @ latencyzero.com.sansspam



Re: Solved: How to complete the link between InitialContext() and ?

Posted by "Craig R. McClanahan" <cr...@apache.org>.
Docs for this are in progress ...

Craig


On Wed, 5 Sep 2001, Rick Mann wrote:

> Date: Wed, 05 Sep 2001 18:13:49 -0700
> From: Rick Mann <rm...@latencyzero.com>
> Reply-To: tomcat-user@jakarta.apache.org
> To: tomcat user jakarta.apache.org <to...@jakarta.apache.org>
> Subject: Solved: How to complete the link between InitialContext() and
>     <resource-ref>?
>
> Ah! A simple look in the Server.xml file seems to have answered my question.
> However, if anyone has additional input that might help me make sense of
> what I just found, that'd be great. Thanks!
>
> ------------------------------------------------------------
> Roderick Mann               rmann @ latencyzero.com.sansspam
>
>
>


Solved: How to complete the link between InitialContext() and ?

Posted by Rick Mann <rm...@latencyzero.com>.
Ah! A simple look in the Server.xml file seems to have answered my question.
However, if anyone has additional input that might help me make sense of
what I just found, that'd be great. Thanks!

------------------------------------------------------------
Roderick Mann               rmann @ latencyzero.com.sansspam