CORBA, as a rule, you need to create a lot of class-specific code, and I doubt that JACORB is going to do it in a class-safe way from the package (since it no doubt needs access to other classes for this to happen).
If you really need to do this, add:
DynamicImport-Package: *
JACORB will provide complete access to your (exported) packages as part of the package. Please note that this means that when JACORB is bound to your specific version of the package, it will not be dynamic (i.e., it will be constantly connected to the life of your package).
You might want to check out the remote OSGi services; there are many different implementations that provide network services; e.g. Eclipse ECF or Apache CXF .
If you just need to call the client via OSGi, then it might be better to link the internal copy of JACORB in your package (so that it sees what your package sees), and then configure the bundle class path with:
Bundle-ClassPath: .,jacorb.jar
This way, your client will be able to access the remote CORBA service, but not (easily) incoming requests. Also note that there may be several singleton resources (e.g., IIOR port), which may mean that you are limited to using this trick once for the OSGi VM.
source share