• Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt on Ian's Moc Exam EJB question ???  RSS feed

Sandeep Lodhia
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

Ian's Mock exam for SCEA says tht Ans B is right for following question :
19) ID - EJ019
What is true about BMP?
(A) Improves your ability to move your EJB from one App server to another.
(B) Reduces your ability to move your EJB from one App server to another.
The link for moc exam is http://www.ianswebpage.com/cert/scea/3mock.php
However in my opinion, A should be the right answer.
Pls note that it is talking about performance of App Server AND NOT DATABASE SERVER !!!
So kindly DONT give explanation on BMPs porting across different databases !!!

I ahd posted same question in EJB-J2EE section and the following is reply of Simon to which I totally agree :
There are really two sides to this...
First of all, it can be argued that BMP increases your ability to build portable EJBs, primarily because you are reducing the need to use vendor specific deployment descriptors to map fields to the database. From this perspective, provided that you only use JNDI-based datasources/connection pools, you should be able to port your EJB to any other application server very easily.
On the other hand, you have control over the code that you write. Therefore, it is possible to introduce vendor specific extensions into your BMP code, making them non-portable between application servers.
With CMP beans, the actual Java code that you write may be portable, but you will probably find that most of the rework will be in re-deploying the CMP beans - writing the deployment descriptors and packaging them up.
So BMP doesn't have to reduce portability.
Anybody have any other thoughts on this?
Simon Brown
Author of Professional JSP Tag Libraries
Co-author of Professional Java Servlets 2.3 and Professional JSP 2nd Edition

I am little confused.
Pls help me out.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!