db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francois Orsini <francois.ors...@gmail.com>
Subject Re: How does an application get access to JDBC implementation classes
Date Mon, 21 Nov 2005 09:39:16 GMT
Yes the following below is supported...

ClientDataSource ds = new ClientDataSource();
ds.setServerName("someHost");
ds.setDatabaseName("dbName");
ds.setUser("userName");
ds.setPassword("userPwd");

ds.setPortNumber(portNumt);

Connection conn = ds.getConnection();

Statement stmt = conn.createStatement();

[...]

and same for EmbeddedDataSource

--francois

Mime
View raw message