• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
Bartenders:
  • Piet Souris
  • Mikalai Zaikin

can you tell me which one is correct???

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
mark ken
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Bartender
Posts: 3807
40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
The longest recorded flight time of a chicken is 13 seconds. But that was done without this tiny ad:
Master Gardener Program
https://coderanch.com/t/771761/Master-Gardener-Program
reply
    Bookmark Topic Watch Topic
  • New Topic