3 Replies Latest reply on Aug 15, 2014 2:30 PM by Wolfgang Knauf

    Why does appclient "Main" replace "System.in"

    Wolfgang Knauf Master

      Hi community,


      I tried to create a small console app using an JavaEE Application Client module (the ones which are started by %WILDFLY_HOME%\bin\appclient.bat). The app should read user input from System.in.


      After a long search, I noticed that "org.jboss.as.appclient.subsystem.Main.main" replaces System.in with a "NullInputStream" and thus I cannot read inputs.

      (Findings based on https://github.com/wildfly/wildfly/blob/master/appclient/src/main/java/org/jboss/as/appclient/subsystem/Main.java )


      Is this the indented behaviour? If so: is there any chance to get user input in an application client module?


      Best regards