File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Applet across firewall Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Applet across firewall" Watch "Applet across firewall" New topic
Author

Applet across firewall

Ramesh Talwar
Greenhorn

Joined: Jun 20, 2001
Posts: 16
Consider following scenario
Applet is downloaded from web server behind the firewall having HTTP proxy configration.
Now is it possible for this applet to create database connection across firewall(Assume database is on webserver itself).
Chetan Mehta
Ranch Hand

Joined: Aug 04, 2001
Posts: 40
Hi,
Why would u want to connect to database from applet? Its not a very good design practise. Instead u should have servlet and give responsibility of connecting to database to the servlet.
As a part of applet security applet can only communicate from the place where its downloaded.
I think , technically speaking you should be able connect to the database server since its on the same physical server as your web server. But how, i may not have answer for you.
Hope it helps...
Regards,
Chetan Mehta
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Applet across firewall
 
Similar Threads
Why servlet is better than Applet
Problem in RMI based chat server...
Is there some trick to prevent decompilers from seeing my password?
client callback
Could not establish connection to Oracle 9i