Problem solve Get help with specific problems with your technologies, process and projects.

Do you need RMI when using EJB and Containers?

Do you need RMI when using EJB and Containers? When is RMI used and for what type of communication?
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:


Dig Deeper on Topics Archive

Book Chapters: Mastering EJB 3rd Edition Review Project Much has happened since the second edition of Mastering EJB book series; mainly, the release of EJB 2.1 specification and massive adoption of Web services technologies by the industry. EJB 2.1 had a few but substantial additions in the specification. Besides, EJB 2.1 specification is part of J2EE 1.4 platform, which has some major additions/changes. As a result, a new edition of this book is warranted. The proposed new edition will contain five new chapters - each either covering a major EJB 2.1 technology or focusing on best practices (such as security) related to the same. This plus the normal updates (ranging from 10% to 50%) to all the existing chapters result in an overall 30% change in the proposed edition from the previous one.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.