File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB restictions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB restictions" Watch "EJB restictions" New topic
Author

EJB restictions

rakesh kadulkar
Ranch Hand

Joined: Jul 24, 2008
Posts: 115
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.


Rakesh Kadulkar
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Dejan Mratinkovic
Ranch Hand

Joined: Nov 20, 2008
Posts: 65
Sun has answered most of your questions (possible all) here:

http://java.sun.com/blueprints/qanda/ejb_tier/restrictions.html
 
Don't get me started about those stupid light bulbs.
 
subject: EJB restictions