• Post Reply Bookmark Topic Watch Topic
  • New Topic

CMP & BMP

 
eswar kumar
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to write an entity bean so that it can be used both as BMP and CMP?
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not easy to do that. In BMP the ejbLoad and ejbStore will contain the fetch and update code.
Isn't is possible to define the business methods in an abstract class and have 2 sub classes one for CMP and another for BMP.
 
Ashok Talluri
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we can write a BMP extend a CMP
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!