Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: System.out.print <-- Where does it go?
HansF wrote:
> 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
>
>
http://otn.oracle.com/pls/ias904/ias904.to_URL?remark=drilldown&urlname=http:%2F%2Fdownload-west.oracle.com%2Fdocs%2Fcd%2FB10464_01%2Fweb.904%2Fb10322%2Fadvanced.htm%231023179
>
> --
> Hans Forbrich
> Canada-wide Oracle training and consulting
> mailto: Fuzzy.GreyBeard_at_gmail.com
> *** I no longer assist with top-posted newsgroup queries ***
Hans, Thanks for the correction.
Regards
/Rauf
Received on Fri May 20 2005 - 19:44:30 CDT