David Olivares wrote:
> I need to have a PRIVATE synchronized method in a session EJB. I
> know the specs don't allow me to have a synchronized methods in
> EJBs, but I'm not sure if having a PRIVATE synchronized method is
> also forbidden.
(1) Where exactly in the spec is such a restriction imposed? I
couldn't find it, e.g., by searching for the word `synchronized.' I'm
sure there is some such restriction, I'm just curious to find it.
(2) Are you saying thet the spec prohibits public synchronized
methods, so that the following is not okay:
public class SomeEntityBean implements EntityBean {
...
public synchronized void doSomething() { ... }
}
But the following is okay?
public class SomeEntityBean implements EntityBean {
...
public void doSomething() {
synchronized( this ) { ... }
}
}
That doesn't make sense. It'd make more sense if the spec were to say
that synchronizing on a bean, in any manner, is prohibited.
- 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".