You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jann VanOver <Ja...@loudeye.com> on 2001/05/10 04:57:49 UTC

RE: It will be possible?(JDBC with tomcat 3.2.1)

Good news!  You don't need to do realms!
 
JDBC Realms are specifically for using a database to authenticate users and
their roles.
 
You can use JDBC directly and completely ignore Realms if you want.
 
However, it is recommended that you NOT put the JDBC code directly into
your JSP.  Use beans (see JSP tutorial at
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-
JSP.html <http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-
Tutorial-JSP.html> ) or JSP tag libraries (like Jakarta's
http://jakarta.apache.org/taglibs/doc/jdbc-doc/index.html
<http://jakarta.apache.org/taglibs/doc/jdbc-doc/index.html> )

-----Original Message-----
From: emailaddress@weppy.com [mailto:emailaddress@weppy.com]
Sent: Wednesday, May 09, 2001 6:11 PM
To: tomcat-user@jakarta.apache.org
Subject: It will be possible?(JDBC with tomcat 3.2.1)


 
<http://203.246.198.171:10004/doUnSeal?mk=emailaddress20010510102124780&uid=
emailaddress> 
I'm using IIS and tomcat 3.2.1.

I  was developed JSP page that is need to connect JDBC, so just make DB
connection object  in bean class or JSP page .

But, Tomcat doc said about JDBC realm, so I have a question about it will
be possible make DBconnection without Java DB connect code.



In /conf  server.xml 

--------------------------------------------------------------------

 

---------------------------------------------------------------------

I wonder it looks like weblogic's conf files . 

Weblogic use conf files to connect DB and EJB code just mapping table's
Attributes.



Is it possible at tomcat ?

If I settting above driverName,connectionURL....that's all?

Could you show me some examples about Using this DB setting at server.xml
?(like simple JSP code or Servlet code)

I want to know how to use DBsetting in server.xml.

(In my opinion) It will be very useful when someone makes JSP or Servlet
code in tomcat..