[RFC][icedtea-web] Fix for single instance service with applets using jnlp_href
ddadacha at redhat.com
Tue Jan 31 12:07:15 PST 2012
Attached is a patch to fix SingleInstanceService to work when applets
If a single instance exists, it'll throw a fatal exception for the
second applet and stop running it. The applet passes the args along
while checking. However, proprietary documentation is unclear about
which args are passed so for now I have left it as a FIXME until that's
+2012-01-31 Danesh Dadachanji <ddadacha at redhat.com>
+ Fixed SingleInstanceService to work with jnlp_href.
+ * netx/net/sourceforge/jnlp/Launcher.java
+ (launchApplication): Print existing single instance in debug mode.
+ (launchApplet): Added check for single instance, throws launchError if
+ single instance already exists.
+ (getApplet): Same as above.
+ (launchInstaller): Added TODO reminder for when it is implemented.
+ * netx/net/sourceforge/jnlp/resources/Messages.properties:
+ Added LSingleInstanceExists.
+ * netx/net/sourceforge/jnlp/services/XSingleInstanceService.java
+ (initializeSingleInstance): Modified to always initialize if the applet is
+ being run by the plugin.
+ (checkSingleInstanceRunning): Modified args passed to
+ Marked applets' args as FIXME, for now it passes an empty args array.
Okay for HEAD?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6545 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120131/4717866c/single-instance-service-01.patch
More information about the distro-pkg-dev