Reputation: 83
What is a stub in ejb? Is it a reference variable for Remote Bean class Object in remote JVM or it is a reference variable for Object residing in the same JVM?
Upvotes: 1
Views: 886
Reputation: 2981
Is a reference variable to an Object residing in the same JVM.
The key point is that this object has the ability to communicate with a remote object residing in another JVM. It's a Proxy that encapsulates the remote method invocation details, which allows you to invoke methods in a remote object as if it was residing in the same JVM.
Upvotes: 2