...
All EJB modules are scanned for @LocalClient classes, even if those EJB Modules are inside .war files as with the Collapsed EAR. As well any modules that contain a META-INF/application-client.xml file will be scanned for @LocalClient classes.
If you see the following error message and are absolutely sure the module containing your @LocalClient class is being properly identified as an EJB module or a Client module, than it is possible you are seeing some classloading issues. We have not seen this in Intellij or Maven, but we have seen it randomly in Eclipse.
Panel |
---|
javax.naming.NamingException: Unable to find injection meta-data for org.superbiz.MyClient. Ensure that class was annotated with @org.apache.openejb.api.LocalClient and was successfully discovered and deployed. |
...