E
Edward A Thompson
so that a server in another JVM can read it?
Edward said:so that a server in another JVM can read it?
The source VM just needs to reroute its STDIN (through socket). TheJohn said:You can use System.setIn(InputStream), but that makes the VM you invoke
it in _read_ its standard input from the socket. To export it to
another VM you must install some kind of object that copies the data
from the source VM through the socket to the receiving VM, with the
receiving VM doing the setIn(). This can be done in a dedicated thread
in order to simultaneously do other useful work in the source VM.
John Bollinger
(e-mail address removed)
so that a server in another JVM can read it?
Ed said:The source VM just needs to reroute its STDIN (through socket). The
server VM processes the stream, then responds to the source VM )through
a socket), which pipes the output to STDOUT. Just not clear on how to
do the redirecting.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.