This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes what's the advantage of using an entity bean (with BMP) ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "what Watch "what New topic
Author

what's the advantage of using an entity bean (with BMP) ?

Fei Teng
Greenhorn

Joined: Feb 07, 2006
Posts: 4
What's the advantage of using BMP entity bean over connecting to database and do the query directly ?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

I see lesser need to go for BMP.

Some advantages
1. If you have stored procedures in place and would like to use them , BMP is the only way.
2. You have a legacy system for which the EJB container does not have any persistence mechanism.
3. You want to map an entity to more than one table.
4. You want more control over the SQL queries and you can write more efficienet queries than the container.


Groovy
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: what's the advantage of using an entity bean (with BMP) ?
 
Similar Threads
Error: [ ejbFindByPrimaryKey ]
Entity Bean Verify Error JDO74033
Local or Remote Access?
Multiple table queries
Mark Cade's Study Guide p. 28 Q13: Benefit using DAO with BMP Entity Bean