aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Question help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Question help" Watch "Question help" New topic
Author

Question help

Andrew Cambell
Greenhorn

Joined: Dec 26, 2002
Posts: 2
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

Joined: Dec 24, 2002
Posts: 48
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question help