Subject Re: Connection Java_Firebird
Author dj_begemot
--- In Firebird-Java@yahoogroups.com, Fernando Dominguez
<fdominguezbr@y...> wrote:
>
> Hy,
> i´m trying to make a connection between java and
> Firebird using Applet and i can´t make a connection
> i`m using the following comands below, is there
> something wrong ? In which kind of connection i have
> to pass the door of database ?
>
> try
> {
> Class.forName ("org.firebirdsql.jdbc.FBDriver");
> con =
> DriverManager.getConnection
("jdbc:firebirdsql:192.168.1.181:Apps/Diversos/Dados/Java.GDB",
> "sysdba","masterkey");
> Statement stmt = null;
> stmt = con.createStatement();
> return true;
> }
> catch (Exception erro)
> {
> return false;
> }
>
Is' hard to speak something without error messages (or, better, full
stack trace). Your code seems to be correct. But first thing in my
mind is that Applets forbidden by JVM to obtain network connections,
except only host, from which Applet was loaded. If its not the case,
provide stack trace of Exception.


Best regards,

Ruslan Cheremin.

> Yours faithfully,
>
>
> =====
> Fernando Dominguez
>
>
______________________________________________________________________
_
> Desafio AntiZona: participe do jogo de perguntas e respostas que vai
> dar um Renault Clio, computadores, câmeras digitais, videogames e
muito
> mais! www.cade.com.br/antizona