programatically invoke commands to third party JNLP link & read output
posted 8 years ago
There's a third party website which has a jnlp link on one of its pages. On clicking the jnlp link, Java Web Start starts the process of verifying whether the client machine has updated jars and then invokes the main method of the main class. The link here launches a Jframe which provides a command-line like functionality to invoke the third-party commands. We need to programatically (automation) invoke the commands & read the output. (The idea is to have a webunit like functionality ; the difference here is that we need data from the window started by JWS. This window is run on the client side using jars mentioned in the jnlp file and downloaded from web-server ). The third party can provide us the jnlp file & source code to read, but we can't change any of them. Any suggestions or leads would be of great help. I have researched quite a bit but haven't found any thing concrete. The ideal solution would have ben to have third-party expose web-servie for invoking comands but that is currently not possible.
In a nutshell : We need to post commands on JNLP and on execution of command a dataset will be displayed on JNLP and we need to read the data displayed in a stream without making any changes to client or server side jars.