tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Louis MONTEIRO <>
Subject Re: testing, @Local/@Remote
Date Tue, 09 Feb 2010 12:20:12 GMT


joe-2 wrote:
> I am quite new to OpenEJB and EJB3 in general, so many things are 
> nebulous for me.
Welcome :)

joe-2 wrote:
> I guessed to make an EJB locally testable it has to implement an 
> interface annotated with @Local.
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
Since EJB 3.1, a bean is not required to implement an interface (@local or
As you already noticed, some details are available at .

joe-2 wrote:
> But it seems i am wrong. My EJBs methods are also invokeable even if 
> they implement an interface annotated
> with @Remote.
> So in general Remote-EJBs are locally invokeable? if yes whats the 
> @Local for?
> Just to make EJB methods not invokeable for remote clients?
> in the "Simple Stateless Example" 
> (
> two interfaces (with identical signatures) are used one with implicit 
> @Local and one with @Remote annotation.
> Why, maybe some use case?
Can't remember if the spec clearly defines that point.


View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message