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
  • 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
copyEndy  challenge 15 96
pairstar challenge 2 63
countHi2 challenge 7 56
Spring Framework HTTPSession management 1 36
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…
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…
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.

825 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