Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does a native calling application get a return value from JNLP?

Tags:

java

client

jnlp

I am launching a JNLP java application from a native client app (i.e. not a browser). When the JNLP finishes it's task, I need it to return a string to the calling app? How can I do this? Is it possible to return a value to a calling app - or do I need to have the calling app listen on a port and have the JNLP app write the value to that port through sockets?

like image 223
user93353 Avatar asked Oct 12 '16 08:10

user93353


1 Answers

Answering my own question!

I write to stdout from the child process (the JNLP)

  • The parent launches the child process

    Process::Start
    
  • Read stdout from Parent

    string ret = process.StandardOutput.ReadToEnd();
    
  • Process::WaitForExit();
    

Anyone sees any problem in this?

like image 125
user93353 Avatar answered Sep 28 '22 00:09

user93353