aspose file tools
The moose likes Applets and the fly likes Applet JDNI database connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet JDNI database connection" Watch "Applet JDNI database connection" New topic

Applet JDNI database connection

Bahadir Mert Uzan

Joined: Mar 27, 2009
Posts: 13
Hi there. I am trying hard to create an applet in a servlet base enviorment. Here is my question.

With the help of glassfish I manage to make a connection to a database(basicly Database pooling)
and then I want to connect this to my applet that I will use in one of my web page. Do you have any
tips for that ?

If you can write a simple code or a good tutorial I would be very glad.

Also if you recomend a better way like using Servlets I would very much appreciate.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42952
What do you mean by "connect"? Whatever DB connectivity you set up in the app server can't be used by the applet, since that's running in a different JVM.
I agree. Here's the link:
subject: Applet JDNI database connection