tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pier Fumagalli <p...@betaversion.org>
Subject Re: Wierd RMI...
Date Tue, 04 Sep 2001 11:13:26 GMT
"Roberto B." <roberto@ipermedianet.com> wrote:

> I'm using a linux (debian) box and a win2000 server box. On both I use
> Tomcat 3.2.3
> I use a RMIJDBC (type 3) driver to connect to an Access DB.
> The following code give me an error:
> 
> :
> Class.forName("RmiJdbc.RJDriver");
> String sourceURL = "jdbc:odbc:rjdemo";
> Connection databaseConnection =
> DriverManager.getConnection("jdbc:rmi:213.188.200.25/" + sourceURL, "user",
> "pasword");
> java.sql.Statement st = databaseConnection.createStatement();
> String strSQL = "SELECT * FROM contact";
> ResultSet rs = st.executeQuery(strSQL);
> :
> 
> The error start with:
> 
> WARNING: Wierd RMI server URL: localhost will be used.
> :
> :
> 
> and then I suppose that the rest of the error is caused by the lack of the
> server RMIJDBC.
> 
> Any idea what means "wierd RMI..."???

All URLs should be ://

So jdbc:rmi://host/url

    Pier


Mime
View raw message