This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Synchronized in ejb Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Synchronized in ejb" Watch "Synchronized in ejb" New topic

Synchronized in ejb

Steve Chernyak
Ranch Hand

Joined: Oct 19, 2000
Posts: 113
If it is illegal to use the synchronized keyword inside the bean class, does that mean that it is also illegal to use Hashtables inside beans?
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
No. All of the restrictions on the EJB programming model only apply to the EJB classes themselves, not the classes that they use. Feel free to use Hashtables and Vectors

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
Steve Chernyak
Ranch Hand

Joined: Oct 19, 2000
Posts: 113
Does it also mean that I can use helper classes that spawn their own threads?
I agree. Here's the link:
subject: Synchronized in ejb