Hi!
Steve Roth wrote:
> Do the standard EJB restrictions (no thread activity, no IO) apply also to
> non-EJB classes used by the EJB?
Yes.
> For example, suppose I have EJBBean A (either BMP or CMP) and util class U.
>
> Inside A's methods on the remote & home interfaces, A instantiates a U and
> calls methods on it.
>
> Must the U methods (executed in the EJBserver JVM) also abide by the EJB
> restrictions, or are they free of these constraints?
Yes. The important thing is that they have the same classloader. If you
package U outside of the EJB-jar, and instantiate it outside of the bean
(such as a RMI-object), then U does not need to abide to these
restrictions.
/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".