• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB restictions

 
rakesh kadulkar
Ranch Hand
Posts: 115
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic