wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Swing and security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Swing and security" Watch "Swing and security" New topic
Author

Swing and security

raphael Bereh
Ranch Hand

Joined: Jan 15, 2002
Posts: 79
Hi all,
I have something strange happening in my program that I don't understand. Hope someone can help me with that : When I try to instantiate a Swing application after installing a security manager, the application is launched by the applet viewer.
Does anybody know why and how to get around this ?
Thanks


SCJP,SCJD,SCBCD
HenkGijsbert
Greenhorn

Joined: Jan 07, 2002
Posts: 28
Hi raphael,
Maby some other member can explain how to get AROUND this (I can't), but you can easily AVOID, it because for the Fligh By Night developers assignment it is not needed to install a security manager on the VM where the GUI runs.
Your GUI should run on a client proces, and your data server on a server process, and only for the data server process you need to install a security manager. When you run in non-networked mode, GUI and database in same VM, you do not need to install a security manager at all.
Hope this helps,
Henk van Jaarsveld
raphael Bereh
Ranch Hand

Joined: Jan 15, 2002
Posts: 79
You are right.
I am actually launching the fbn GUI from a class whose role is to create the Data instance, remote or local. In case of remote, my code look like this :
--> install security manager
--> lookup remote object
--> launch fbn GUI
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Swing and security
 
Similar Threads
JAAS and container managed security
Question on pausing a loop.
Netscape security model is no longer supported.
swing help
SCEA II/III passed with 92%