In e4 there are multiple contexts available. One of those contexts can be active.
To get an Eclipse service into an OSGi component the Eclipse context can be used. The Eclipse context can be retrieved through the bundle context.
Bundle bundle = FrameworkUtil.getBundle( MyLogManager.class ); IEclipseContext context = EclipseContextFactory.getServiceContext( bundle.getBundleContext());