ejb reference in deployment descriptor (without annotations )
问题 I try to inject dependency in EJB 3.0 using only deployment descriptor. When I deploy my app to Glassfish (v3.1) I get this exception: java.lang.RuntimeException: Warning : Unable to determine local business vs. remote business designation for EJB 3.0 ref Local ejb-ref name=ejb/Test2,Local 3.x interface =pl.Test2Local,ejb-link=Test2,lookup=,mappedName=,jndi-name=,refType=Session I have no idea what I do wrong. Can anybody help me, please? The ejb-jar.xml descriptor is: <session> <ejb-name