Hi,

Before EJB 3.1, @local was not required. If you have a bean implementing a
single interface, the container will assume it's the local interface. If you
implement more than one interface, you have to explicitly add the @Local
annotation.

OK

Since EJB 3.1, a bean is not required to implement an interface (@local or
@remote).

OK, but this makes only sence for local EJBs?
Cause in EJB 3.0 i use the Remote Interface to reference the EJB.
So i guess for RemoteEJBs this explicit Remote-Interface is still needed?

As you already noticed, some details are available at
http://openejb.apache.org/3.0/simple-stateless-example.html
http://openejb.apache.org/3.0/simple-stateless-example.html .


"... Local interfaces in EJB are pass-by-reference interfaces..."

Ah ok, so this will be faster than the serialization / deserialization of the Parameters as used for RemoteBeans. As i can see in the debugger the serialization / deserialization really happens if a RemoteEJB method is invoked.



Reply via email to