Forums Register Login

EB bean class question

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
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
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 625 times.
Similar Threads
When is entity considered created?
Datatatypes in EJB
ques from mock exam
Basic Object Pooling doubt
typo in Resin documentation
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 09:10:55.