On Thu, 13 Jul 2000 14:28:15 -0400, James Cook <[EMAIL PROTECTED]>
wrote:
>----- Original Message -----
>From: Rickard �berg <[EMAIL PROTECTED]>
>
>> Me too, but more importantly I think I understand the intent behind
>> these restrictions (Server-side WORA, plain and simple). And I agree
>> 100% with them.
>
>I have a problem with the spec attempting to prevent users from themselves,
>and I think the file i/o issue is too restrictive. It sounds like you feel
>file i/o has no place in beans. Isn't there value in reading
>properties/config files? I can imagine that env settings can be too
>restrictive in some situations.

In this particular case I don't see a problem, since the kind of things
we use properties files for (name/value mappings) is available through
the ejb-jar.xml file (environment settings).

In general, IMHO you are looking at it the wrong way. I do not see this
primarily as a way to prevent users from themselves, but rather
1. *Ensure* portability of beans. If it's an EJB it is portable. Period.
Introduce I/O and the other stuff and it becomes "well, it's portable,
although this and this have to be satisfied, and..".
2. You introduce the possibility for EJB's to run in an application
hosting environment. If EJB's can't do anything really nasty, its *much*
safer to run them. Since I work for an ASP this is a very important
property for me at least.
3. The server, and the resource factories it encapsulates, is in
complete control over how resources are managed. This is vital for
scalability etc.

The only reason I see for doing I/O *in the beans* is because it is
easier in some cases. And if you *really* want to do that, regardless of
all the benefits of *not* doing it, then simply choose a server that
allows it. Remember that the restrictions are the "base": a server may
(according to the spec) provide more capabilities, which in practice
(from an EJB-container point of view) means not doing anything to
prevent the bean from doing things.

/Rickard

--
Rickard �berg

@home: +46 13 177937
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".

Reply via email to