[jboss-user] [Microcontainer] - Re: simple: bean name of ejb local in inject tag

jaikiran do-not-reply at jboss.com
Mon Aug 17 10:37:40 EDT 2009


<inspect bean="GooGooEngine/local"/>
  | 

inspect? Or is that a typo for inject?

EJBs are not deployed as Microcontainer Beans (MC beans). So they are not available for injection *in MC style*. However, Andrew recently has written a plugin where in you can inject EJB beans through annotations in MC beans. Like this:

  | public class MyMCBean
  | {
  | 
  |  @EJB
  |  private MyBusinessInterface ejb;
  | 
  | }

For further reference, see this http://exitcondition.alrubinger.com/2008/12/20/doing-two-models-at-the-same-time/

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249965#4249965

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249965



More information about the jboss-user mailing list