Applet não está conectando à BD remoto

Boa tarde,



Estou tentando conectar à um BD acom um applet, mas não está funcionando. Isso não é possível?





Connection connection = null;

try

{

// Carregando o Driver JDBC

Class.forName("oracle.jdbc.driver.OracleDriver");

connection = DriverManager.getConnection("jdbc:oracle:thin:@192.168.220.10:1521:orcl","scott","tiger");

//

Statement stmt = connection.createStatement();

ResultSet resultSet = stmt.executeQuery("SELECT * FROM BONUS");

while (resultSet.next()) {

saida.append (resultSet.getString(1)+"n");

saida.append (resultSet.getString(2)+"n");

saida.append (resultSet.getInt(3)+"n");

saida.append (resultSet.getInt(4)+"n");

}

} catch (ClassNotFoundException e)

{

// Não foi possível encontrar o Driver JDBC

} catch (java.sql.SQLException e)

{

// Não foi possível se conectar a base de dados

}

Dê uma olhada em



http://www.ddj.com/documents/s=944/ddj9702l/9702l.htm



talvez ajude.