tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From afryer <>
Subject Re: Injection fails in any class that didn't instantiate an embedded ejb container
Date Fri, 17 Feb 2012 11:45:57 GMT
I didn't know about the @ManagedBean annotation. I got it to work using the
@LocalClient annotation and creating an empty
META-INF/application-client.xml file.  What's the difference between
@ManagedBean and @LocalClient?  I just tried using @ManagedBean but i still
got the same error as before (could not find meta data...).  

I did find that using @LocalClient i couldn't inject into my test case
classes using the @Inject annotation.  I had to use @EJB instead.  

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message