applet « Connection « Java Database Q&A





1. Creating a connection pool in a java command line application    stackoverflow.com

Is it possible to create a command line application (without an application server) That uses a connection pool in order to access the database?. And how to do it? I've tried it ...

2. Connecting Java Applet with Database    stackoverflow.com

I've got a simple problem... I've got an Java applet running on my client machine which needs to communicate with a database at my end. I'm not sure how I go ...

3. connecting to remote database(MSSqlserver) using applet    stackoverflow.com

HI, I am having a problem that I have to insert the data in a table from the applet. since the applet run on the client machine and the database is ...

4. How to connect applet to database    coderanch.com

Sandeep

Sun Certified Programmer for Java 2 Platform

Oracle Certified Solution Developer - JDeveloper
-- Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java
-- Object-Oriented Analysis and Design with UML

Oracle Certified Enterprise Developer - Oracle Internet Platform
-- Enterprise Connectivity with J2EE
-- Enterprise Development on the Oracle Internet ...

5. How to connect applet to database    coderanch.com

7. uanble to wstavlish connection using JDBC and applet    coderanch.com

import java.sql.*; import java.io.*; import java.awt.*; import java.applet; import java.awt.Button; public class Test extends Applet implments ActionListener { tf= new TextField(10,5); tf2 = new TextArea(10,5); b= new Button("click"); public static void main(String ar[]) { Object ob = new Object(); init(); } void init() { tf2.add(); tf.add(); b.addActionListener(this); } public void ActionPerformed(ActionEvent ae) { if(ae.getSource == "click") { object(); } } public ...

9. Signed Applet Database Connection..    forums.oracle.com

jdbc:mysql://192.168.5.4:3306/OQMcontrolec30_validatie_mysql com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException MESSAGE: java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.5.4:3306 connect,resolve) STACKTRACE: java.net.SocketException: java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.5.4:3306 connect,resolve) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156) at com.mysql.jdbc.MysqlIO.(MysqlIO.java:277) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2668) at com.mysql.jdbc.Connection.(Connection.java:1531) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:185) at Main.init(Main.java:200) at sun.applet.AppletPanel.run(AppletPanel.java:419) at java.lang.Thread.run(Thread.java:619) ...





10. applet + jdbc can't connect    forums.oracle.com

11. ClassNotFoundException when applet tries to connect to DB.    forums.oracle.com

Thanks for your reply. you will have to package your applet jar with the driver classes. I now tried this and added these classes, which makes the application work. It also runs fine on a web application on my computer using the localhost:8080 adress, and also using my ip-number :8080/the .jsp file. However when a friend tried to use it over ...

12. mysql-jdbc applet connection issue    forums.oracle.com

//*********BLOCK TO RETRIEVE RECORDS FROM TABLE********* try{ Statement st = conn.createStatement(); ResultSet res = st.executeQuery("SELECT * FROM table1"); System.out.println("Name: " + "\t" + "Age: "); while (res.next()) { String s = res.getString("name"); int i = res.getInt("age"); System.out.println(s + "\t" + i); } } catch (SQLException s){ y = y + 20; g.drawString("******* s: "+s,50,y); } //*********END OF BLOCK TO RETRIEVE RECORDS ...

13. Connect to a database in an applet    forums.oracle.com

How can I do this? I have searched the internet and searched this forum but found nothing that exactly describes how to do this. I have a mysql database on a host, so how do I access it. I looked at jdbc, but I saw several people saying that since the applet is actually on the client side you cant connect ...

14. connecting to remote database(MSSqlserver) using applet    forums.oracle.com

HI, I am having a problem that I have to insert the data in a table from the applet. since the applet run on the client machine and the database is on the remote machine now when java on client machine looks for the driver "com.microsoft.jdbc.sqlserver.SQLServerDriver" then it give the exception that class com.microsoft.jdbc.sqlserver.SQLServerDriver not found. so how should I set ...