General J2EE: what are the disadvantages of using EJB?
I want to know why there are so many people use ORM tools instead of EJB.
- Posted by: Ji Liu
- Posted on: July 26 2004 20:41 EDT
Are there some disadvantages?
- what are the disadvantages of using EJB? by Joe Attardi on July 27 2004 08:37 EDT
- what are the disadvantages of using EJB? by David Bai on July 28 2004 05:42 EDT
- what are the disadvantages of using EJB? by David Salter on July 29 2004 06:12 EDT
One big reason is complexity and overhead. If you've ever created an entity EJB, you'll know what I'm talking about. There are many issues with things like the deployment descriptor, etc, that are sometimes non-intuitive and overkill for a lot of projects.
I have used IBM Websphere to develop EJB.
I don't think there are some difficulties.
Maybe the reason is the ide does the work for me.
Compare using Hibernate and making POJO with messing up with entity beans and other kinds of PO, you'll admit it.
I want to know why there are so many people use ORM tools instead of EJB.Are there some disadvantages?If you have a good IDE Entity Beans are easy to develop and use - much of their complexity is hidden from you.
They have disadvantages such as you can't inherit them from your domain classes which may be issues for your project.
They can also be quite "chatty" with the database if you don't use them correctly.