wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes can you tell me which one is correct??? 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 "can you tell me which one is correct???" Watch "can you tell me which one is correct???" New topic
Author

can you tell me which one is correct???

mark ken
Ranch Hand

Joined: Sep 01, 2004
Posts: 47
I'm just doing a mock test:
There is a question:
say, there is a one to many relationship, saleman --> customer
saleman1--> collectionCustomers1
saleman2--> collectionCustomers2

if I call saleman1.setCustomers(saleman2.getCustomers())
What will happened?
In the mock test, it says: saleman1 will get all customers have two collections (collectionCustomers1 and collectionCustomers2). saleMan2 will have no customers.

But in another book,
It says for above situation, saleman1 only got collection of collectionCustomers2 and will lost collectionCustomers1.

Can you tell me which one is right answer! thank you.


SCJP1.2 ,SCJD1.5 , SCBCD1.3 ,SCWCD1.4
mark ken
Ranch Hand

Joined: Sep 01, 2004
Posts: 47
one more question:
Is Bean's local home and local component interfaces must in ejb-jar file???
I think if there is remote home and remote component interfaces in ejb-jar is enough!
Mikalai Zaikin
Ranch Hand

Joined: Jun 04, 2002
Posts: 3199
    
    5
Originally posted by mark ken:
one more question:
Is Bean's local home and local component interfaces must in ejb-jar file???
I think if there is remote home and remote component interfaces in ejb-jar is enough!


if only Local view is uzed for EJB, then both local home and local [component] interface must be included in ejb-jar file (plus bean class ofcourse).

if only Remote view is uzed for EJB, then both remote home and remote [component] interface must be included in ejb-jar file (plus bean class ofcourse).

if both Remote and Local views are used for bean, then Remote Home, Remote component, Local Home, Local component must present in ejb-jar.


Free SCDJWS 5.0 Study Guide - SCDJWS 5.0 Quiz (How to get SCDJWS 5.0 Quiz)
Java Platform, Enterprise Edition 6 Web Services Developer Certified Expert Exam Study Guide and Quiz
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can you tell me which one is correct???
 
Similar Threads
question on mock exam
Passed with 81%
Mock exam
please help me
Passed SCWCD with 89%