Nothing has changed. The spec states:
"An enterprise bean must not use the java.io package to attempt to access
files and directories in the file system. The file system APIs are not
well-suited for business components to access data. Business components
should use a resource manager API, such as JDBC API, to store data."
But, of course, we can all think of many situations where we want to use I/O
that has nothing to due with transactional issues. Most EJB servers do not
prevent you from performing file I/O. Do any?
jim
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Rickard �berg
> Sent: Friday, November 03, 2000 5:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Writing files with EJBs
>
>
> On Fri, 3 Nov 2000 23:26:36 +0100, Dirk Koschuetzki
> <[EMAIL PROTECTED]> wrote:
> >Douglas Bullard wrote:
> >
> >> EJBs should not directly access I/O.. but they can sure use
> helper classes
> >> which _can_ access I/O.
> >>
> >> Works fine for me in my latest app....
> >
> >Are you sure this is correct/allowed? Any helper class, used as an
> >ordinary object in an EJB, may be "inlined" and therefore the
> EJB violates
> >the above condition.
> >
> >BTW the same happens to utility classes (all methods static).
>
> This is a FAQ. The details of when and how classes are restricted by the
> EJB restrictions have been discussed extensively on several occasions
> before. Please see mailing list archives for more info
> (archives.java.sun.com).
>
> regards,
> Rickard
>
> --
> Rickard �berg
>
> Email: [EMAIL PROTECTED]
> http://www.telkel.com
> http://www.jboss.org
> http://www.dreambean.com
>
> ==================================================================
> =========
> 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".