This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes mock exam questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "mock exam questions" Watch "mock exam questions" New topic
Author

mock exam questions

Keith Rosenfield
Ranch Hand

Joined: Nov 25, 2003
Posts: 277
In headfirst chapter 6 mock exam question one is as follows.
______________________________________________________________________
1. What's true for a bean provider when creating an entity bean using container-managed persistence?
The solution given is
C. When implementing a one-to-many relationship, the java.util.List interface must not be used.
______________________________________________________________________
What is meant by a one-to-many relationship in this context? If possible give an example. Why is there a question about relationships in chapter 6, when entity bean relationships are not covered until chapter 7??? Isn't this question a bit premature?

In the solution to question 16 on page 371 the note say that the bean needs to be loaded because it may have cascading deletes to take care of. I'm not sure why this is the case. Someone please elaborate on this point.
What is meant by question 18 which reads:
Which method(s) run in the transaction context ofthe method that cuses their invocation?
Please explain in laymen terms, keeping in mind at all times that I am an absolute begginer to this subject.


Thanks for your help.
[ December 06, 2003: Message edited by: Keith Rosenfield ]
[ December 06, 2003: Message edited by: Keith Rosenfield ]

Keith Rosenfield<br />SCJP<br />SCWCD<br />SCBCD
Philippe Maquet
Bartender

Joined: Jun 02, 2003
Posts: 1872
Hi Keith,
What is meant by a one-to-many relationship in this context? If possible give an example. Why is there a question about relationships in chapter 6, when entity bean relationships are not covered until chapter 7??? Isn't this question a bit premature?

It is. You simply cannot reply to it till you read and study the next chapter. I guess it was not on purpose.
In the solution to question 16 on page 371 the note say that the bean needs to be loaded because it may have cascading deletes to take care of. I'm not sure why this is the case. Someone please elaborate on this point.

Let's say that bean A as a one-to-one or one-to-many relationship with bean B, that bean B has <cascade-delete /> for this relationship. When bean A is removed, the container is responsible cascade delete to bean B. I understand from Kathy's explanation that to perform that, it needs that bean A is synchronized with the db, so ejbLoad() could be called on bean A. It's just my interpretation though.
What is meant by question 18 which reads:
Which method(s) run in the transaction context ofthe method that cuses their invocation?

Will be clearer when you'll be at chapter 9 which deals with transactions.
Best,
Phil.
[ December 06, 2003: Message edited by: Philippe Maquet ]
Keith Rosenfield
Ranch Hand

Joined: Nov 25, 2003
Posts: 277
Thanks Phillipe.
I guess I'll need to read to the text at least twice. It's a challenge to keep all of this information straight.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mock exam questions
 
Similar Threads
Cascade-delete Question
HF questions - page 316
Stateful session beans Pooling - HFE
Transaction Question from spec
HFE - Page 108!!