yep, but you have to put it there first :) you can use ejb-jar.xml and jboss.xml to accomplish this.
ejb-jar.xml defines the lookup string (the bold part): java:comp/env/ejb/MyBean
jboss.xml will map this lookup string the global jndi name of the bean.
but is this not possible to accomplish this with annotations?
Currently my beans ends up in my-ear/MyBean/local (or remote) with the default behavior with simple annotations. If I want (the local) beans in java:comp/env as well I need ejb-jar.xml as well as jboss.xml?
I cannot really find any documentations on this - if you could give my an example I'd be very happy.