aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes About CMP question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "About CMP question" Watch "About CMP question" New topic
Author

About CMP question

Konda Balabbigari
Ranch Hand

Joined: Jan 02, 2001
Posts: 35
While testing CMP entity bean , a developer discovers that a change to one of the bean's properties is not reflected in the database that contains the bean data. What are possible causes? Select four answers?
a) The ejbStore() method has a bug
b) The ejbCreate() method has a bug
c) The ejbLoad() method has a bug
d) The setter for the property has a bug
e) The mapping of container managed fields to database fields has a bug
f) The deployment descriptor has a bug

My ansers are:
b, d, e, f
Please comment on this
Konda..

ruilin yang
Ranch Hand

Joined: Feb 25, 2001
Posts: 334
I feel:
a, b, e, f
Since there is no setter method.
Please comments.
[This message has been edited by ruilin yang (edited October 31, 2001).]
[This message has been edited by ruilin yang (edited October 31, 2001).]
Konda Balabbigari
Ranch Hand

Joined: Jan 02, 2001
Posts: 35
Hi ruilin
I think in the ejbStore() method we do not need to write any code. Calling ejbStore() method is automatically called by the Container. In this situation the answer a) is wrong.
No clue what are correct choices.
Thanks
Konda..
ruilin yang
Ranch Hand

Joined: Feb 25, 2001
Posts: 334
Konda,
I think you are right since in the question setter may not mean a method. It may mean setting a field as public or private for example. Therefore, setting of fields can cause the problem.
You are right for CMP user do not need to implement: ejbStore() and ejbLoad().
Therefore b,d,e,f are correct as you said.
Konda Balabbigari
Ranch Hand

Joined: Jan 02, 2001
Posts: 35
While testing CMP entity bean , a developer discovers that a change to one of the bean's properties is not reflected in the database that contains the bean data. What are possible causes? Select four answers?
a) The ejbStore() method has a bug
b) The ejbCreate() method has a bug
c) The ejbLoad() method has a bug
d) The setter for the property has a bug
e) The mapping of container managed fields to database fields has a bug
f) The deployment descriptor has a bug

Today i took the test, i found the answers are
a, c, d, e.
Can some comment on this why ejbStore() correct answer instead on ejbCreate() method
Thanks
Konda.
Chetan Mehta
Ranch Hand

Joined: Aug 04, 2001
Posts: 40
Hi Konda,
Can you please tell me what test are u talking about? Please guide me about sample sites avaliable for SCEA part 1 tests.
Regards,
Chetan Mehta
Chetan Mehta
Ranch Hand

Joined: Aug 04, 2001
Posts: 40
Hi Konda,
Can you please tell me what test are u talking about? Please guide me about sample sites avaliable for SCEA part 1 tests.
Regards,
Chetan Mehta
Konda Balabbigari
Ranch Hand

Joined: Jan 02, 2001
Posts: 35
Hi Chetan
I am sorry, i was out today
This question is from IBM exam no. 488. from http://certify.torolab.ibm.com
Thanks
Konda..
 
Consider Paul's rocket mass heater.
 
subject: About CMP question