Can i write business logic methods in entitybean?
Answer Posted / supraja
One easy way to achieve this is to separate pure business
logic from the persistence mechanism. Implement the
business logic in your CMP class, which can be deployed
alone if CMP is chosen. Then implement the persistence code
into the BMP class, which inherits from the CMP class. This
preserves all the business logic of the CMP superclass and
adds database access code in the BMP subclass,
This model sounds easy to implement but still leaves the
following flexibility inhibitors:
It is impossible to extend the implementation classes.
Doing so means the subclasses must extend both the CMP and
the BMP superclass directly. In addition, the BMP subclass
will have to extend its direct CMP implementation. This
causes multiple class inheritance. Such multiple
inheritance is not allowed in Java programming
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
why Bean class implements all business method of Remote interface but bean bean class not implements the remote interface
What are versions of ejb?
What is ejb and why it is used?
What were entity beans?
What is the new basic requirement for a cmp entity bean class in 2.0 from that of ejb 1.1?
Define Context?
What does ejb stand for?
Differentiate “find a method” from “select method” in EJB ?
Enlist the contents of Container.
What is use of @postconstruct?
What do you mean by timer service and where it is used?
What are the key features of the ejb technology?
What is the procedure of ejb container to handle exceptions?
What are the limitations of using local object?
Enlist the declarative transaction types?