Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


EJB3 Pros and Cons

Posted on 2007-04-03
Medium Priority
Last Modified: 2013-11-24
What are the advantages and disadvantages of using EJB3 in not-too-big projects?
Question by:kevorkgt
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Author Comment

ID: 18848850
The article compares two methods for migrating a Java service to EJB.
LVL 30

Accepted Solution

Mayank S earned 1500 total points
ID: 18861393
>> advantages

Transaction management
Persistence/ Database relational mapping
Session/ state management (in case of stateful)
Creation/ passivation/ maintenance etc

All done by the container.

>> disadvantages

Heavy to use
Uses RMI so serialization/ de-serialization will happen (unless you use local interfaces)

Author Comment

ID: 18861484
Why is EJB "heavy to use"?
LVL 30

Expert Comment

by:Mayank S
ID: 18862218
Because the containers will typically take more space for install, deal with databases for persisting the EJBs, RMI for serialization/ de-serialization when EJBs are called remotely, etc

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question