Hi,
What would be answer to this question:
You are designing an Enterprise Application to provide a way for customers to buy products from many companies through one standard site. The application servers you have use the
EJB specification 1.1. You have a customer bean and are not sure whether to use CMP or BMP. When should you use CMP?
A When performance is essential and you are storing standard data types.
B When performance is not essential and you are storing standard data types.
C When performance is essential and you are storing complex data types.
D When performance is not essential and you are storing complex data types.
I think performance wise, BMP is better than CMP. Also, in CMP if we use PrimaryKey class we can use object mapping to create complex object types.
So it could be B and D.
But correct answer is B.
Any comments?
Thanks