This content has been marked as final.
Show 2 replies
-
1. Re: java:com/env not working?
waynebaylor Dec 1, 2007 9:20 PM (in response to emsa)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. -
2. Re: java:com/env not working?
emsa Dec 2, 2007 6:20 AM (in response to emsa)Thanks,
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.
Thanks