Re: File I/O in EJBs

Saravana <[email protected]>
Newsgroups gmane.comp.java.sun.ejb.general
Message-ID <[email protected]>
Hi,

My suggestion does not mean that ejb's can access files. If a wrapper class
is accessed thru a business object

and method in the wrapper class is thread safe and the method returns a file
content in String  format.

Though the file instance exists in container make the Singleton to work with
that.

 I hope it should solve ur problem. Correct me if iam wrong.

Regards

Saravana


----- Original Message -----
From: "Cindy hao" <[email protected]>
To: "Saravana" <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, July 15, 2003 11:24 PM
Subject: Re: File I/O in EJBs


> Saravana,
>
> Thanks for responding to my email. You are  suggesting that EJBs can
access
> file I/O indirectly through some helper classes. But my understanding is
that
> EJB can not access file I/O either directly or indirectly.
>
> Cindy
>
> Saravana wrote:
>
> > Hi,
> >         In EJB's to access a file as for my knowledge, use a wrapper
class
> >
> > and implement Streams in that. Return a String from that method and
parse
> > the
> >
> > String using the parser, or do the processing in the class it self. Hope
> > this solves ur problem.
> >
> > Regards
> >
> > Saravana
> >
> > ----- Original Message -----
> > From: "Cindy hao" <[email protected]>
> > To: <[email protected]>
> > Sent: Tuesday, July 15, 2003 8:30 PM
> > Subject: File I/O in EJBs
> >
> > > Hi,
> > > Since file I/O is prohibited in EJBs, how to access large and dynamic
> > > generated files from EJBs? Would you please recommend an approach or
> > > approaches with the best Qos?
> > >
> > > Thanks in advance,
> > >
> > > Cindy Hao
> > >
> > >
> >
===========================================================================
> > > 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".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.