File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes How will i get refrence of printWriter Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "How will i get refrence of printWriter" Watch "How will i get refrence of printWriter" New topic
Author

How will i get refrence of printWriter

Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216


Dear sir in the above bean class i am calling a busness method getAdvice from a servlet file. But see i have written System.out.println() in the contaner call back method of bean class.
But how these statment will printed in iexplorer.
As we know that to print a statment on explorer you need to be the object of printwriter class but here how will i get the object of printwriter class that is
response.getWriter()

Thanks

Arun kumar maalik
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
You will do no such thing.
The SOP calls are purely for logging purposes, they're not for data that should go back to the client.

That's not to say that in a real application you'd do it like that, you'd instead use some logging package to handle logging (like the standard Java logging or Log4J), but you would NOT return that information to the calling EJB client (in fact most of it you cannot return to the client because the methods are never called from the client).


42
Arun Maalik
Ranch Hand

Joined: Oct 25, 2005
Posts: 216
Thanks sir
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How will i get refrence of printWriter
 
Similar Threads
generating class file without using javac command
Problem witth NoInitialContextException
running EJB gives exception in 'main' of Client
On running a stand alone client there is no output
WebLogic server-not getting the component interface right