Hi,
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"
(http://openejb.apache.org/3.0/simple-stateless-example.html)
two interfaces (with identical signatures) are used one with implicit
@Local and one with @Remote annotation.
Why, maybe some use case?