Subject Re: [Firebird-Java] Re: Connection Java_Firebird
Author Fernando Dominguez
--- dj_begemot <cheremin@...> escreveu:
---------------------------------
--- 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
>
>
______________________________________________________________________
Ok,
i will check, thanks for help.

Best regards,


=====
Fernando Dominguez

_______________________________________________________________________
Yahoo! Mail
Mais espaço, mais segurança e gratuito: caixa postal de 6MB, antivírus, proteção contra spam.
http://br.mail.yahoo.com/