Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet JDNI database connection

 
Bahadir Mert Uzan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic