开发者

Get JNLP file name from the launched program

开发者 https://www.devze.com 2023-03-01 10:07 出处:网络
Is it possible to determine JNLP file name from the launched thru Web 开发者_如何学CStart java program?System.getProperty(\"jnlpx.origFilenameArg\")

Is it possible to determine JNLP file name from the launched thru Web 开发者_如何学CStart java program?


System.getProperty("jnlpx.origFilenameArg")


At he moment, the only way I know how to do that is to add a property with the JNLP href as the value. The application can add that to BasicService.getCodeBase() to construct the URL to the JNLP file.


Why do you need this information?

It's necessary for statistic needs.

If you want to determine hits on the JNLP, those will be revealed in the server logs. If it is necessary to determine 'number of successful launches', then add the HREF into the JNLP as a property and have each app. reach back to the server (to an 'app. phone home' page) once it is started.

0

精彩评论

暂无评论...
验证码 换一张
取 消