File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Fei Teng
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the advantage of using BMP entity bean over connecting to database and do the query directly ?
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic