You can use an annotation in a managed class within the referencing component's naming environment instead of the deployment descriptor :
@EJB(name="ear-name/ExampleBean/local", beanInterface=Example.class)
[Message sent by forum member 'ksak' (ksak)]
http://forums.java.net/jive/thread.jspa?messageID=255365