Hey
[EMAIL PROTECTED] wrote:
> Forgive my ignorance - I'm relatively new to this - but if an Enterprise
> Bean is forbidden from doing IO or accessing external resources, how is it
> possible to implement Bean-Managed Persistence? In this case, the Entity
> Bean is responsible for storing and restoring its own state in some
> arbitrary store ( which could be just a file, not necessarily an RDBMS ) -
> that would be rather difficult without doing IO!
First off, you're not supposed to use files for BMP as they're not
transactional.
That said, it is perfectly possible to implement whatever store you like
*as long as the core is not packaged with the beans*. Just as JDBC
databases may do I/O (duh), whatever you can come up with may use I/O as
long as you don't package them with your EJB app. NONE of the
restricitions apply if you do it that way. COMPLETE freedom to do I/O,
threads, statics, etc. (which also means complete freedom to shoot
yourself in the foot, but that's your problem...)
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
Homepage: http://www-und.ida.liu.se/~ricob684
===========================================================================
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".