Subject Re: [Firebird-Java] DataSourceExample
Author Rick Fincher
Hi Kurt,
 
That has been deprecated but still works, the code takes your string and calls setDatabase(String).  I'll update the examples.
 
To get rid of the warning, use setDatabase(string) instead of setDatabaseName(string).
 
Thanks for pointing this out.
 
Rick
 
----- Original Message -----
 

Hi,

By compiling the DataSourceExample
there is a warn-message: deprecated

D>javac -deprecation DataSourceExample.java
DataSourceExample.java:53: warning: setDatabaseName(java.lang.String) in
org.firebirdsql.jdbc.FBSimpleDataSource has been deprecated
dataSource.setDatabaseName ("//MyServer:3050/D:\\employee.gdb");
1 warning

Can / has this to by eliminated ?