>> But someone has tried to see in this case having the Applet deployed
>>also adding the (new) optional parameter jnlp_href ?
>> Could be useful in many situations ...
>
> Haven't tried it yet, since the new plugin doesn't yet run on OS X.
Could be a useful test ... at least on Windows.
>>- if Web Start is available, can be set a boolean flag (defined in
>>ApplicationContext) read-only for applications ? Could be useful in many
>>situations ...
Better, we (or i) can do an utility method (maybe static, and maybe in
ApplicationContext, and without having a global instance boolean
variable) that tries to get a reference to a Web Start Service
(Codebase or another), and if available return true, very simple and
could be useful in many other situations.
> I think this probably falls outside the realm of Pivot functionality.
But a block of code like this is already in DesktopApplicationContext,
take a look:
// Load the JNLP classes dynamically because they are only available
// when run via javaws
Class<?> serviceManagerClass =
Class.forName("javax.jnlp.ServiceManager");
Method lookupMethod =
serviceManagerClass.getMethod("lookup", new Class<?>[]
{String.class});
Object basicService = lookupMethod.invoke(null,
"javax.jnlp.BasicService");
Class<?> basicServiceClass =
Class.forName("javax.jnlp.BasicService");
Method getCodeBaseMethod =
basicServiceClass.getMethod("getCodeBase", new Class<?>[] {});
URL codeBase = (URL)getCodeBaseMethod.invoke(basicService);
if (codeBase != null) {
origin = new URL(codeBase.getProtocol(),
codeBase.getHost(), codeBase.getPort(), "");
I could do a simple prototype of the method, tell me.
> There must be a way to obtain this information from the JRE, no?
I've searched a lot of documentation, but nothing happens ... i
remember something old where an environment variable was created
inside the Java Process, but I haven't tries, and I'm not able to get
that info ... so i think the answer here is No, there isn't a simple
way.
But if someone knows ...
Thanks,
Sandro