aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Can EJB be used not as service from OSGi bundle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Can EJB be used not as service from OSGi bundle" Watch "Can EJB be used not as service from OSGi bundle" New topic
Author

Can EJB be used not as service from OSGi bundle

Pasha Turok
Greenhorn

Joined: Jun 09, 2014
Posts: 5
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can EJB be used not as service from OSGi bundle