tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joe <>
Subject testing, @Local/@Remote
Date Tue, 09 Feb 2010 11:17:23 GMT

I am quite new to OpenEJB and EJB3 in general, so many things are 
nebulous for me.

What's the right strategy for unit testing EJBs?

My understanding is the following:
For testing i should use the embedded EJB container.

I guessed to make an EJB locally testable it has to implement an 
interface annotated with @Local.
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?

View raw message