• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

BMP and CMP in entity Beans?

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have not worked on enity beans but went thru some articles on net. I get bit confused about the CMP and BMP Terms. they are here:-

1)We use the term BMP and Cmp in context of Entity bean only. Correct?

2)In CMP we don not write any JDBC code they are done Developer just provides the mapping info at deployment time. Does container internally uses JDB apis only?

3)Third is In BMP we write the JDBC code to persiste the data, Then is there any use of enity bean here? We can do the same in session beans also.

 
Ranch Hand
Posts: 110
Google Web Toolkit Java Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're really in 2011? We don't use it anymore. JPA FTW!
 
Ranch Hand
Posts: 312
MS IE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please find below answers to your questions.

1. Yes
2. Yes
3. Session Beans are used to handle transactions, while Entity Beans are used to persist data in a Database. This is the standard use of such Beans.

 
scott miles
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a question on 3rd point if in a session bean we are using jdbc for persistence , can we call it Bean Managed persistence?
 
Jayr Motta
Ranch Hand
Posts: 110
Google Web Toolkit Java Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no such concept once the container managed persistence was banished, persistence is always bean managed and supported by the container.
 
reply
    Bookmark Topic Watch Topic
  • New Topic