0

With desktop applications, to maintain global values, I usually have some singleton or static properties. However, recent days, I have been working with applet. And it causes some trouble because when I we open the application in different tabs of Firefox, the applets are launched in the same JVM and share the sames static things.

I wonder how you do manage global values in this case?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
Loc Phan
  • 4,304
  • 4
  • 29
  • 35
  • 1
    Why do you need to maintain global values? Likely you could rewrite it so the data is not global and simply avoid this problem. – wolfcastle May 21 '11 at 05:31

1 Answers1

2

For applets running in a Next Generation Java Plug-in Technology JRE, it is easy.

<param name="separate_jvm" value="true" />
Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433