Solved

EJB3 Pros and Cons

Posted on 2007-04-03
5
1,323 Views
Last Modified: 2013-11-24
What are the advantages and disadvantages of using EJB3 in not-too-big projects?
0
Comment
Question by:kevorkgt
[X]
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
5 Comments
 

Author Comment

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

Accepted Solution

by:
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)
0
 

Author Comment

by:kevorkgt
ID: 18861484
Why is EJB "heavy to use"?
0
 
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
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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.

628 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