Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: System.out.print <-- Where does it go?
On Thu, 19 May 2005 17:26:27 -0700, Rauf Sarwar interested us by writing:
> System.out writes to stdout (Standard Output) via java.io.PrintStream.
> In java stored procedure, you use dbms_java.set_output procedure to
> redirect the System.out/System.err calls to your sqlplus screen
> otherwise it goes to current trace files on the server side.
>
I think you misread this one. You are 100% right on for DB server but he's asking about App Server and (I believe) specifically about J2EE based and EJBs.
For app servers, standard out and stderr are container dependant and for OC4J, the answer is found in Chapter 3 of "Containers for J2EE User's Guide" in section "Redirecting Standard Out and Standard Error" from which we see
"In an Oracle Application Server environment, the standard output and standard errors for OC4J are routed to the OPMN log for the OC4J instance."
The same section discusses how to reset this as well. Direct (but probably wrapped) link is
-- Hans Forbrich Canada-wide Oracle training and consulting mailto: Fuzzy.GreyBeard_at_gmail.com *** I no longer assist with top-posted newsgroup queries ***Received on Fri May 20 2005 - 00:20:21 CDT
![]() |
![]() |