• 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

EB bean class question

 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Should all the business methods defined in the bean class of an entity bean be declared abstract ? It doesn't say so in the specs (10.6.8), but in Monson-Haefel's book, all the business methods are declared abstract.
Can someone clarify... Andrew are you there ?
Thanks, Sudd
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sudd Ghosh:
Should all the business methods defined in the bean class of an entity bean be declared abstract ? It doesn't say so in the specs (10.6.8), but in Monson-Haefel's book, all the business methods are declared abstract.
Can someone clarify... Andrew are you there ?
Thanks, Sudd


Am not Andrew :-).
The business methods in a CMP entity bean need not be abstract. Only the methods accessor / mutators need to be abstract.
Infact one thing that comes to my mind immidiately are the ejbHome methods that we declare on the home but implement them in the bean. They defintely are not abstract.
HTH
 
Sudd Ghosh
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for the explanation.
I realized it soon after posting the message that I was looking mainly at the accessors/mutators (which are handled by CMP) and some CMR fields (handled by query). This is the reason why they were declared abstract, since no implementation was there or needed in the bean class.
Thanks, Sudd
reply
    Bookmark Topic Watch Topic
  • New Topic