users@glassfish.java.net

Re: asadmin changes in v2.1 effect return status of some commands?

From: <glassfish_at_javadesktop.org>
Date: Tue, 27 Jan 2009 13:59:49 PST

Uh Oh. Doing a Runtime.exec needs careful redirection of streams and the default handling
(especially on Windows) fills up the buffer for someone to read. But if none reads it, the program
will hang. Note that both start-domain and create-domain write lots of information to their
standard output and hence you need to clear the buffer where the output is written.

Please see JDK API for ProcessBuilder to do this right.

-Kedar
[Message sent by forum member 'km' (km)]

http://forums.java.net/jive/thread.jspa?messageID=328487