On Jul 2, 2012, at 4:57 PM, Romain Manni-Bucau wrote: > cant it be done with mapped name?
Yes, it can. A repost of that in case it was missed. This works in the released code: You can set the MappedName for the @EJB ref via the web.xml of JSF app rather than in code. @EJB(name="orange") private Orange orange; Then in the web.xml you can override that exact reference like so: <ejb-ref> <ejb-ref-name>orange</ejb-ref-name> <mapped-name>jndi:ext://shoe/OrangeBeanRemote</mapped-name> </ejb-ref> -David