Laird Nelson wrote:
> By this logic any time I use java.util.Vector in my bean code I am
> violating the EJB 1.1 specification (beans can't use threads or
> synchronization primitives; third-party classes used by beans can't
> use them either; java.util.Vector uses synchronized all over the
> place; therefore java.util.Vector is in violation of the
> specification; therefore my bean is in violation of the
> specification).
The spec says:
An enterprise Bean must not use thread synchronization primitives to
synchronize execution of multiple instances.
So you can use Vector (and its ilk), as long as only one enterprise
Bean at a time uses each instance of a Vector, because then you're not
synchronizing execution of multiple enterprise Beans.
- Rujith.
===========================================================================
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".