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
How ejb invocation happens?
How to create ejb project in eclipse?
What are the advantages of ejb components?
How do I use a less than or greater than on a message selector in ejb-jar.xml?
What is stateless and stateful?
Why should we use ejb?
Is it legal to have static initializer blocks in ejb?
What is ejb technology?
What do you mean by in-memory replication?
What are the components of ejb?
Is it possible to share an httpsession between a jsp and ejb?
What is the procedure for the creation of stateless ejb?
Why do we need ejb in java?
TX operation funtion executed by?
How many types of session beans are available in ejb?