This could have issues :
Could you explain this again please!
(1). Session time out issue will come into the picutre again.
(2). the pipe stream you are talking is for client-server based or
for web based? open another socket connnection to pipe for the file
not http connection?
(3). disk file is kind of cache tech, if any exception occured,
data lost
Thanks
Larry
-----Original Message-----
From: Dave King [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 03, 2000 11:29 AM
To: [EMAIL PROTECTED]
Subject: Re: Writing files with EJBs
Larry,
use sax, pipe the input stream from the network connection strait into sax,
you don't need to hit the disk and you don't need to
create a big string to parse things in memory. I've done it before and I'll
do it again.
-Peace
Dave
> -----Original Message-----
> From: Larry Liu [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 03, 2000 10:43 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Writing files with EJBs
>
>
> Dave :
>
>
> If the file with limited size is ok, but how if it is a more
> than 30mb to
> 100 mb file
> Cache this big String object will have impact on the system
> resource and
> performance,
> in addition, mutliple file instance or String objects ? Could
> you explain
> you idea clearly?
>
>
> Larry
>
> -----Original Message-----
> From: Dave Wolf [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 03, 2000 8:28 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Writing files with EJBs
>
>
> Technically reqding and writing to file I/O is forbidden in
> EJB. Why not
> read the document into a String object, and parse it in
> memory. Why do you
> need the file I/O?
>
> Dave Wolf
> Internet Applications Division
> Sybase
>
> ----- Original Message -----
> From: "Mathias Bogaert" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, November 03, 2000 10:17 AM
> Subject: Writing files with EJBs
>
>
> > Hello,
> >
> > I figured out how to read a remote file (by using a
> Resource Reference to
> a
> > java.net.Url).
> > I need to parse a remote XML file, and now i copy the file
> to localhost
> and
> > parse it using SAX (copy using IO operations directly).
> >
> > But is there a standard ("correct") way for writing/parsing
> the file to/on
> > the localhost?
> >
> > How can I do this? Is there more information available on
> IO operations
> > using EJB's?
> >
> > TIA
> > Mathias Bogaert
> >
> >
> ==============================================================
> =============
> > To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the
> body
> > of the message "signoff EJB-INTEREST". For general help,
> send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
> >
>
> ==============================================================
> =============
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff EJB-INTEREST". For general help,
> send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
> ==============================================================
> =============
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff EJB-INTEREST". For general help,
> send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".