Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Advantages of abstract class in ejb2.0  RSS feed

 
Raju Sathwik
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Could any one explain the advantages of using abstract bean class in ejb2.0. What is the flexibility in using it.
Regards,
Raju
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The deploy tool (i.e. container) needs to subclass the CMP bean and implement the get/set methods which may not have an implementation (making it an abstract method) since a class with abstract methods must be marked abstract, the class must be abstract also.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The abstract bean classes are a convenience for the server, not for you as the developer.
 
Raju Sathwik
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok guys Thanks a Lot!!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!