Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Swing and security

 
raphael Bereh
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
HenkGijsbert
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic