Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About CMP question

 
Konda Balabbigari
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic