No kidding! I didn't recall this from the spec...

It actually seems kind of silly to me. As long as one uses TX NOT SUPPORTED
for the associated bean, I don't see the problem.

I also don't see how the "stand alone" object helps here. All we are
accomplishing by that is adding a level of indirection. So the bean itself
isn't doing the IO, but it delegates to an object that does. What does this
accomplish? We are still not using a transaction capable resource.

-Chris.

> -----Original Message-----
> From: Jorgen Thelin [SMTP:[EMAIL PROTECTED]]
> Sent: Sunday, August 22, 1999 11:47 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Text/Flat-file Databases
>
> Chris Raber <[EMAIL PROTECTED]> writes:
> >Any EJB server can handle this, but the file IO is up to you using
> >java.io.*.
>
> Except ....
> Use of file.io is specifically excluded by the EJB 1.1 spec:
>
> From EJB1_1-PublicRelease doc, section 18.1.2 page 273
>
> <quote>
> 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, to store data.
> </quote>
>
> So actually NO EJB servers can handle this directly!  :-(
>
>
> The solution is to use a "standalone" lookup object to do the io,
> registered as a JNDI resource.
>
>
> [I think you pressed the Reply key too quickly Chris, 'cos I know you
> know this really!  I just thought it best to set the record straight to
> stop anyone's projects going down a blind alley.]
>
> - Jorgen
>
> ------------------------------------------------------------
> | Software Technologies  ----:----  http://www.SwTech.com/ |
> | ----------->  One-stop Developer Reference  <----------- |
> | Technical reference for professional software developers |
> ------------------------------------------------------------
>
> ==========================================================================
> =
> 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".

Reply via email to