Sunday 15 March 2015

java - System.out.println printing on Server -



java - System.out.println printing on Server -

using eclipse :

when sysout in java file, prints @ eclipse console when our application deployed on jboss sysout prints value @ server console , server logs. it, makes change?

for eg: in standalone normal java program

system.out.println("java wonderful") prints on eclipse console

but if write same sentence in java file i.e. part of web application , application deployed on jboss value printed on jboss console , server logs.

what know "out" refers scheme console if sysout should write system's console. why in case of web application deployed on jboss write on server console.

the value of system.out starts out "standard output" stream jvm running application.

when run application within eclipse, eclipse has used system.setout(...) stream writes eclipse console.

when launch jvm eclipse, jvm's system.out start out referring eclipse console. application in jvm could alter using system.setout(...).

when launch jvm command line, jvm's system.out start out referring shell's console.

for jboss, launch script (or native launcher) alter standard output stream before launches application. should documented somewhere ...

so find out going on, need @ how launching jboss.

but there nil particularly mysterious it.

java eclipse logging jboss

No comments:

Post a Comment