EJB3 Pros and Cons

Posted on 2007-04-03
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
LVL 23

Expert Comment

ID: 18848325

Author Comment

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

Accepted Solution

Mayank S earned 500 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
strDist challenge 35 135
mapShare challenge 13 148
Problem to start Neon 20 140
eclipse formatting 6 117
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
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.

730 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