Is there a way to serialize the io objects.
Thanks
Kavin
-
How to serialize the FileWriter object ? (4 messages)
- Posted by: sona kavin
- Posted on: December 13 2000 08:38 EST
Threaded Messages (4)
- How to serialize the FileWriter object ? by Dave Wolf on December 13 2000 11:35 EST
- How to serialize the FileWriter object ? by Zavier on December 13 2000 12:13 EST
- How to serialize the FileWriter object ? by Vijay K on December 13 2000 12:53 EST
- How to serialize the FileWriter object ? by Kiran Patchigolla on December 13 2000 05:35 EST
- How to serialize the FileWriter object ? by Zavier on December 13 2000 12:13 EST
-
How to serialize the FileWriter object ?[ Go to top ]
- Posted by: Dave Wolf
- Posted on: December 13 2000 11:35 EST
- in response to sona kavin
No. Its also illegal ini EJB 1.1 to use the java.io.* package.
Dave Wolf
Internet Applications Division
Sybase
-
How to serialize the FileWriter object ?[ Go to top ]
- Posted by: Zavier
- Posted on: December 13 2000 12:13 EST
- in response to Dave Wolf
Dave
What if i want to write log/errors into a file ? How can I handle exceptions in EJB comps. suppose when a JSP file access EJB comp, and the ejb comp throw some exception, how will i know what exception is ? -
How to serialize the FileWriter object ?[ Go to top ]
- Posted by: Vijay K
- Posted on: December 13 2000 12:53 EST
- in response to Zavier
Here is where the exception handling mechanism comes handy.
We're using the mechanism of throwing exception from a bean
suppose i've getBusinessMethod()
throws IllegalArgumentException,
DatabaseException
i'll write a jsp like
try {
remote.getBusinessMethod();
}
catch(DatabaseException e) {out.println(e.toString()};
Regarding your question, writing log files from an ejb.. It works with some containers like weblogic, but it's not legally allowed by ejb spec. so, if you use log files, your ejb might not be portable across containers, which defeats the purpose of writing portable objects.
-
How to serialize the FileWriter object ?[ Go to top ]
- Posted by: Kiran Patchigolla
- Posted on: December 13 2000 17:35 EST
- in response to Zavier
You probably want to read the following thread about logging......
http://theserverside.com/discussion/thread.jsp?thread_id=2194
Thanks,
Kiran.