Do you need RMI when using EJB and Containers? |
 |
EXPERT RESPONSE FROM: Jeff Hanson

|
 |
|
| > |
QUESTION POSED ON: 03 October 2003
Do you need RMI when using EJB and Containers? When is RMI used and for
what type of communication?
|
|
| > |
EXPERT RESPONSE
One service that an EJB container must provide is the low-level
communication for remote access to each EJB that it hosts. While RMI might be used for the low-level communication, an EJB programmer or an EJB-client programmer need not concern himself/herself with the details, since one of the features of the EJB model is to hide these details from both.
With that said, it is a good idea to acquaint yourself with the basics of RMI when programming to EJB. Understanding concepts such as pass-by-value, type narrowing, serialization, etc. are almost essential to fully grasp the EJB invocation model and to program to the EJB architecture effectively.
A couple of good starting points for understanding EJB and its relationship to RMI can be found at the following links:
http://java.sun.com/products/jdk/rmi/index.html
http://developer.java.sun.com/developer/onlineTraining/rmi/RMI.html
http://developer.java.sun.com/developer/onlineTraining/EJBIntro/EJBIntro.html
|
|
|
');
// -->

|
|
 |

 |
 |
Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and
answer pairs from more than 250 TechTarget industry experts.
|
 |
 |
 |
|
 |
 |
 |
|
 |
|
 |