The EJB specification forbids using synchronization primitives within an EJB (Chapter 24.1.2, page 494).
anonymous wrote : An enterprise Bean must not use thread synchronization primitives to synchronize execution of multiple instances. What about the use of such primitives in scheduler JMX-Beans provided by JBoss-AS? I have a JMX-Bean implementing Schedulable and MessageListener interfaces. Two threads compete against the scheduler object via perform() and onMessage() methods. To avoid race conditions both methodes have to be synchronized. Do I have to expect any conlicts? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3863872#3863872 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3863872 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
