Kabir Khan [
http://community.jboss.org/people/kabir.khan%40jboss.com] created the
discussion
"Re: ServerManager-Server(-ProcessManager) communication"
To view the discussion, visit:
http://community.jboss.org/message/561862#561862
--------------------------------------------------------------
Brian Stansberry wrote:
A key thing the PM needs to do is handle the last sentence in this bit from the
java.lang.Process class javadoc:
"The created subprocess does not have its own terminal or console. All its standard
io (i.e. stdin, stdout, stderr) operations will be redirected to the parent process
through three streams (
http://download.oracle.com/javase/6/docs/api/java/lang/Process.html#getOu...
getOutputStream(),
http://download.oracle.com/javase/6/docs/api/java/lang/Process.html#getIn...
getInputStream(),
http://download.oracle.com/javase/6/docs/api/java/lang/Process.html#getEr...
getErrorStream()). The parent process uses these streams to feed input to and get output
from the subprocess. Because some native platforms only provide limited buffer size for
standard input and output streams, failure to promptly write the input stream or read the
output stream of the subprocess may cause the subprocess to block, and even
deadlock."
Thanks, that is kind of what I was worried about regarding
stdout/-err. I should have read the javadoc!
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/561862#561862]
Start a new discussion in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]