I'm trying to populate a JTable with data from an online MySQL database. Here's what I've done so far:
1) Add the table to the form 2) Right click on table, select Table Contents, select bound, Import data to form (the connection works and the respective table can be viewed in the services window) 3) Right click on table again, select Bind, select Elements, shift Available to Selected
When I run the project, I get a load of errors with this being at the top:
SEVERE: Application class tabletesting.TableTestingApp failed to launch Local Exception Stack: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException Internal Exception: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The above procedure works fine on the sample databases (on localhost) that come with NetBeans.
Any ideas where the problem is with the remote connection?
SCJP 5, SCWCD 5, SCBCD 5
subject: Netbeans 6.5: Populating JTable with MySQL database