I'm developing application with javaee (gf4) and I'm using osgi bundle architecture. Now I'm trying to inject in servlet (bundle1) EJB (bundle2) but I failed. All bundles are at the same domain of GF. I tried to get it via lookup - the same result. In internet I can see a lot of examples how to use EJB as service and I'm little confused. Can't we use EJB as not service? Via @EJB or only as service in this case?
subject: Can EJB be used not as service from OSGi bundle