[jboss-dev-forums] [JBoss AS7 Development] - Re: ServerManager-Server(-ProcessManager) communication

Kabir Khan do-not-reply at jboss.com
Wed Sep 15 06:15:32 EDT 2010


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#getOutputStream%28%29 getOutputStream(),   http://download.oracle.com/javase/6/docs/api/java/lang/Process.html#getInputStream%28%29 getInputStream(),   http://download.oracle.com/javase/6/docs/api/java/lang/Process.html#getErrorStream%28%29 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&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100915/3de777f7/attachment.html 


More information about the jboss-dev-forums mailing list