This is very easy to do:

Connection conn;
conn = DriverManager.getConnection( Configuration.getString(
"url",
"jdbc:oracle:oci8:[user_id][EMAIL PROTECTED]"));

(where "url" is fetched by my Configuration class that uses
ResourceBundle to get the IP string from a properties file)

and you can learn how to in Sun's online JDBC tutorial
(java.sun.com/products/jdbc/).

Cheers!
Mark

----- Original Message -----
From: "Ramon Fernandez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 10:09 AM
Subject: Applet connecting to a remote database


> Hello ,
>
> I want an applet to connect to a remote database ( not on the
web/servlet
> server ).
> ( i want to bring data from the remote database to populate a
list of
> values for a combo-box)
> It seems that the JDBC API 2.0 provides a component that allows
this :
> rowset web
> Has anybody used this yet ?
>
> Thanks for your help.
>
> Ramon FERNANDEZ
> INSA LYON - CRI
> Tel  : 04 72 43 89 21
> Fax : 04 37 47 90 07
>
>
_________________________________________________________________
__________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to