HomeDocumentation > Developing > Tutorials > Developing EJB applications > Referring to an EJB from outside its EAR

Introduction

Referring to beans from other Jar not included in the same Ear is not as simple as in case they are included in one Ear. There are three ways to accomplish this purpose.

Jar with referred bean

Java code

Geronimo's specific XML

Referring with @EJB(mappedName="...") + openejb-jar.xml

Referring with @EJB(name="") + openejb-jar.xml

Referring with @EJB(no name) + openejb-jar.xml