tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@gmail.com>
Subject Re: Using @EJB/@Inject to lookup on remote interface running on separate standalone OpenEJB server
Date Tue, 03 Jul 2012 02:12:25 GMT

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


Mime
View raw message