This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB restictions  RSS feed

 
rakesh kadulkar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont understand why the EJB's have been restricted from using the following things.

1. No read/write of static fields

2.No thread synchronization

3.No AWT usage

4.No socket listening

5.No File I/O

6.No reflection

7.No creation of threads

8.No access to securty configuration access

9.no loading of native library

Can someone explain why are these restrictions on EJB's

Thanks.

 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you think a bit about what purpose EJB components have you'll be able to see why most of these are restricted. Section 21.1.2 of the EJB specification covers these in more detail.
 
Dejan Mratinkovic
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun has answered most of your questions (possible all) here:

http://java.sun.com/blueprints/qanda/ejb_tier/restrictions.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!