aspose file tools*
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
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: 8919

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what's the advantage of using an entity bean (with BMP) ?