Subject | Connection with JayBird |
---|---|
Author | Marcos Carlos |
Post date | 2015-11-30T17:24:48Z |
Hi there,
My name is Marcos and this is my first message. ----
private FBConnection(){
Properties prop = new Properties();
try{
FileInputStream fileinput = new FileInputStream(App.workdir+"/resources/config/config.properties");
prop.load(fileinput);
Class.forName("org.firebirdsql.jdbc.FBDriver");
conn = DriverManager.getConnection("jdbc:firebirdsql:"+prop.getProperty("host")+"/"+prop.getProperty("port")+":"+prop.getProperty("arquivo")+"?lc_ctype=utf8" ,prop.getProperty("user"),prop.getProperty("password"));
}catch(Exception e){
e.printStackTrace();
}
}
----
Marcos de Lima Carlos
mail to: mlimacarlos@...
mail to: mlimacarlos@...
http://blog.sirandsir.com/ - Blog da Sir & Sir
http://inventory.sirandsir.com/ - Sir&Sir inventory!