dbTalk Databases Forums  

System.out.print <-- Where does it go?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss System.out.print <-- Where does it go? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Zean Smith
 
Posts: n/a

Default System.out.print <-- Where does it go? - 05-19-2005 , 05:28 PM






I am running Oracle Application Server 10g, and I tried to debug some
existing Java Bean files. so, I used "System.out.print" to debug, but I
couldn't find where it wrote to. Anyone can help?

I tried looking into the web-based admin Log search, but couldn't find any
clue. Help...



Reply With Quote
  #2  
Old   
Rauf Sarwar
 
Posts: n/a

Default Re: System.out.print <-- Where does it go? - 05-19-2005 , 07:26 PM







Zean Smith wrote:
Quote:
I am running Oracle Application Server 10g, and I tried to debug some

existing Java Bean files. so, I used "System.out.print" to debug,
but I
couldn't find where it wrote to. Anyone can help?

I tried looking into the web-based admin Log search, but couldn't
find any
clue. Help...
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.

Regards
/Rauf



Reply With Quote
  #3  
Old   
HansF
 
Posts: n/a

Default Re: System.out.print <-- Where does it go? - 05-20-2005 , 12:20 AM



On Thu, 19 May 2005 17:26:27 -0700, Rauf Sarwar interested us by writing:


Quote:
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/ias....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 ***


Reply With Quote
  #4  
Old   
Rauf Sarwar
 
Posts: n/a

Default Re: System.out.print <-- Where does it go? - 05-20-2005 , 07:44 PM




HansF wrote:
Quote:
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/ias....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



Reply With Quote
  #5  
Old   
HansF
 
Posts: n/a

Default Re: System.out.print <-- Where does it go? - 05-20-2005 , 08:13 PM



On Fri, 20 May 2005 17:44:30 -0700, Rauf Sarwar interested us by writing:


Quote:
Hans, Thanks for the correction.

Regards
/Rauf
Glad to return the favour. Hey, this IS a mutual support society <g>

--
Hans


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.