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".

Reply via email to