views:

91

answers:

4

Hi everyone !!! Plz i don't know if my post is in accordance with your policy...for any problem please i present all my desolations.

I'm a bsc student in CIT . I have a project i which i want to use java applet and jdbc in a sort of host/client :

My applet is working properly in the host but when i deploy it on apache webserver i lose the jdbc connection. Questions: 1-Is it possible to use applet with jdbc ? 2-If yes how to do it ? 3-Is there any web server in which to deploy applet and that support jdbc connection ?

my system : fedora 8 , netbeans 6.5 , xampp, mysql .

+1  A: 
  1. Yes its possible to use applet with jdbc.
  2. Look here and here and here for possible ways of implementation.
  3. Try googling for webservers, you will find tons of them, one lead is http://eatj.com/.

Rgds,

Aeon

Kevin Boyd
+2  A: 

You're probably running up against an issue with the Applet running in a sandbox, it can only communicate with the server from which it came - so if your database is on a different machine it can't be found.

A preferable architectural approach is to have your server do all the JDBC and communicate the information requested via HTTP to the client which is thinner dealing mainly presenting the user interface.

Tom
A: 

Hi! thanks for this tutorial ,i found it so helpful… Is it possible to deploy an applet on a web server ? i try it with xampp but it’s working given that i can access the applet from a client side through the LAN. But the problem is that i receive the Gui but the JDBC connection is lost ie i can retrieve data from the web server database …

Once thanks for your help…

Still confused as to what you are trying to accomplish. You can create an applet and have it make JDBC calls without needing a webserver. You can also have a webserver running xampp doing JDBC calls and presenting the info to the user without using an applet at all.I am struggling with why you would want to use all 3 components.
Knife-Action-Jesus
A: 

Thanks ,and sorry for my lateness; I just want deploy a jdbc supported applet through the network . tha's all i want ....