aspose file tools
The moose likes Applets and the fly likes Why I don't get a SecurityException ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Why I don Watch "Why I don New topic
Author

Why I don't get a SecurityException ??

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3359

Hi all
I created a small chat server (you know, Sockets, ServerSockets, threads ..)and the clients will be applets.
I created the following class :

the applet code contains :

Ok, every thing is ok and there is no error and the server and applets are working correctly.
but I am wondering why I don't get a SecurityException ?
my applet is using sockets, which are not allowed in unsigned applets (my jar is unsigned) ??
any ideas ??
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24061
    
  13

Depends how you're running it. Applets are (generally) allowed to connect to the server they're downloaded from.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Why I don't get a SecurityException ??
 
Similar Threads
Problem when calling applet
URGENT!! chat applet
How to get username from Win2K
Applet question
B&S 2.2.2 - Network Layer Query