local and remote clients

G

gk

Assuming L and R are the local and remote clients for session bean B,

R can pass its reference for B as a parameter in a method call to L.

what it means ? i can not understand this statement. can anybody help
me to understand it ?

how do i code for it ?



L cannot call methods on R. Doesn't this depend on what R actually
is, and where it is located?
what it means ? i can not understand this statement. can anybody help
me to understand it ?

how do i code for it ?
 
M

Manish Pandit

I believe you are getting confused between the local and remote
interfaces in J2EE. Local interfaces are used when the caller co-exists
with the bean, such as in the same container. You need to use remote
interfaces when the call is being made over the network, or in a
separate JVM. Local Interfaces for EJBs were introduced to optimize
inter-JVM calls, as there is no RMI/IIOP involved. I recommend reading
some dev-friendly tutorials on J2EE before writing code - it will help
build your understanding step by step.

-cheers,
Manish
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,268
Messages
2,571,096
Members
48,773
Latest member
Kaybee

Latest Threads

Top