File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question help

 
Andrew Cambell
Greenhorn
Posts: 2
  • 0
  • 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
 
Arvind Varma
Ranch Hand
Posts: 48
  • 0
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic