DISADVANTAGE OR RESTRICTIONS OF EJB
Enterprise Java Beans have several restrictions, which they must adhere to:
1. They cannot create or manage threads.
2. They cannot access threads using the java.io package.
3. They cannot operate directly with sockets.
4. They cannot load native libraries.
5. They cannot use the AWT to interact with the user.
6. They can only pass objects and values which are compatible with RMI/IIOP.
7. They must supply a public no argument constructor.
8. Methods cannot be static or final.
9. There are more minor restrictions.
1. They cannot create or manage threads.
2. They cannot access threads using the java.io package.
3. They cannot operate directly with sockets.
4. They cannot load native libraries.
5. They cannot use the AWT to interact with the user.
6. They can only pass objects and values which are compatible with RMI/IIOP.
7. They must supply a public no argument constructor.
8. Methods cannot be static or final.
9. There are more minor restrictions.
But following can be done with EJB:
1. Subclass another class.
2. Interfaces can extend other interfaces, which are descendants of EJBObject or
EJBHome.
3. Helper methods can pass any kind of parameters or return types within the EJB.
4. Helper methods can be any kind of visibility
1. Subclass another class.
2. Interfaces can extend other interfaces, which are descendants of EJBObject or
EJBHome.
3. Helper methods can pass any kind of parameters or return types within the EJB.
4. Helper methods can be any kind of visibility
No comments:
Post a Comment