On Tue, Nov 18, 2008 at 10:09 PM, Oliver Günther
<[EMAIL PROTECTED]> wrote:
> By inspecting the pom.xml you can see, that only the following
> dependencies were added:
> <dependency>
> <groupId>org.osgi</groupId>
> <artifactId>osgi_R4_core</artifactId>
> <version>1.0</version>
> </dependency>
> <dependency>
> <groupId>org.osgi</groupId>
> <artifactId>osgi_R4_compendium</artifactId>
> <version>1.0</version>
> </dependency>
Move them to a profile and let them be "provided".
> - Approve if the OSGi dependencies are acceptable for most of the
> project modules.
See above.
> - All dependencies must at least supply the OSGi MANIFEST (I used the
> jar-repack goal of pax to do this, but for a longshot and the ease to
> develop the supplying projects, should supply the MANIFEST). Contacting
> the projects, still not doing this, might take some time.
+1000. I cannot devote much time to it right now, but would like to
help a little bit. As a first shot I'd go for the generated manifest
and commit them to the openejb repo.
> - I changed the org.apache.openejb.client.proxy.Jdk13ProxyFactory to
> work in OSGi.
> (using the class-loader of the factory-class to for all proxy requests)
> Looking forward that the changes get into the development tree. I can
> resupply them also as a patch.
>
> - In org.openejb.client.Client.processRequest on line 241
> /*----------------------------------*/
> /* Read response */
> /*----------------------------------*/
> try {
> res.readExternal(objectIn);
> } catch (ClassNotFoundException e) {
> a ClassNotFoundException in the OSGi environment is thrown (totally
> expected) because the class-loader of the openejb-client does not know
> the classes of different bundles. I intend to supply the needed
> classloaders via a service to the openejb-client. But how do I find out
> which class the Response needs (the name as string) and how do I tell
> the Response which classloader to use. I'm looking forward for some hints.
You can specify optional dependencies in MANIFEST.MF. They don't have
to be available upon bundle startup and delivered later on.
Jacek
--
Jacek Laskowski
Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl