Off-topic Talk Where overpaid, underworked S2000 owners waste the worst part of their days before the drive home. This forum is for general chit chat and discussions not covered by the other off-topic forums.

Are signing Java applets the only way to perform JDBC & file I/O over the internet?

Old Jan 28, 2003 | 11:23 AM
  #1  
s2kdriver80's Avatar
Thread Starter
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Nov 2002
Posts: 2,048
Likes: 8
From: Long Island, New York, US
Default Are signing Java applets the only way to perform JDBC & file I/O over the internet?

I've made a GUI at work that interacts with the DB and performs file I/O operations within the company network. Now I'm trying to make this into an applet to be used over the web (not for the public, my boss just wants to show something to someone 500 miles away over the web) so I'm not too concerned about security issues. But, it seems that Java has a built-in security countermeasure that prevents potential hacking/cracking behavior which could stem from an applet performing these actions. I've scoured the web and it seems that signing applets are the only way to go? Any other easier method of allowing the applet these DB and file permissions? Remember, I'm not looking for security here, it's just a one-time thing that my boss wants to use to show someone how our software works.

Btw, how about Java servlets? Do they have similar constraints as Java applets? Or would this method be "easier" and less constricting? Thanks for your help guys.
Reply
Old Jan 28, 2003 | 01:23 PM
  #2  
foolio's Avatar
Registered User
 
Joined: Sep 2001
Posts: 565
Likes: 1
From: SF Bay Area
Default

A Java applet runs on the PC with the browser, not the server where the applet was downloaded from. So 2 problems: 1) it only has file i/o access to the PC 2) network access to only the exposed IP of your company.

Unless your admin is willing to punch these holes in your company's firewall for your demo, I'd suggest a remote-window program like VNC or BackOrifice. edit: I just realized these programs need firewall access too. How about VPN?
Reply
Old Jan 28, 2003 | 01:57 PM
  #3  
PeaceLove&S2K's Avatar
20 Year Member
 
Joined: Jul 2002
Posts: 19,257
Likes: 19
From: San Diego, CA
Default

Applets can only open connections back to the originating server (at least with the old specification). So one way around it is to put your webserver and database server on the same box.

File I/O won't work for the reasons foolio stated.

Servlets are not thus constrained. However, you need a servlet container to be able to use servlets. Also, you can't do GUI applications (I'm assuming awt or Swing, etc) with servlets, you can only use those to generate HTML output.

Or of course you could just write a standalone Java app, and connect directly to your database, and do file I/O via RMI. (this would be pretty complicated though)

Easiest solution is probably what foolio suggested.
Reply
Old Jan 28, 2003 | 03:51 PM
  #4  
The Unabageler's Avatar
Former Moderator
 
Joined: Oct 2000
Posts: 20,448
Likes: 0
From: internet
Default

i gotta do a java application for a similar thing. i hate java.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
s2kdriver80
Off-topic Talk
11
Jul 1, 2003 05:44 PM
redleader
Off-topic Talk
4
May 5, 2003 08:52 AM
s2kdriver80
Off-topic Talk
0
Mar 31, 2003 05:37 AM
mingster
Off-topic Talk
5
Apr 11, 2001 09:26 PM



All times are GMT -8. The time now is 10:04 PM.