Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Question help

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone help me with this question. Thanks
When many clients call the findByPrimaryKey() method and specify the same primary key, the ejb server does which of the following? (Select two)
The ejb server creates a unique instance of that entity EJB object with that primary key
The ejb server creates only one instance of the entity EJB object with that primary key
The ejb server creates remote stubs specific to each client
The ejb server creates home stubs specific to each client
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I feel 2 & 3 options are right
The ejb server creates only one instance of the entity EJB object with that primary key
The ejb server creates remote stubs specific to each client
As many clients are going to work on the same data it makes more sense to have only one instance of EJBObject for a given primary key.
But how each client refer that Object may be different. Hence my choice of second option.
do post your views about this
Thanks
 
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic