943,673 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 754
  • Java RSS
Apr 26th, 2009
0

Java Applet JDBC

Expand Post »
I have a java applet on my website and i need it to connect to my mysql database. When I was trying to figure out how to do this i saw several examples that used jdbc. I'm confused can I use this to connect to my mysql data base at mysql.mysite.com. I am using a web hosting service(dreamhost) for my website. The line that is confusing me the most is

String url = "jdbc:mySubprotocol:myDataSource";
Last edited by kinger29; Apr 26th, 2009 at 4:33 pm.
Similar Threads
Reputation Points: 11
Solved Threads: 2
Light Poster
kinger29 is offline Offline
35 posts
since Mar 2008
Apr 30th, 2009
0

Re: Java Applet JDBC

url = "jdbc:mysql:ipaddress/databasename"
should work
remember that the mysql server should be running from same server as the applet, else i might give some policy errors
Reputation Points: 10
Solved Threads: 0
Newbie Poster
AMetnik is offline Offline
20 posts
since Apr 2009
Apr 30th, 2009
0

Re: Java Applet JDBC

Dear,

Applets are designed for rich-client application. So with default implementation of applet, you can't add IO and database operations.

But, to do so, you have to create security sub-class and policy.
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Re: instant messenger project
Next Thread in Java Forum Timeline: HELP: Image show up for splt second then goes away!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC