On Jul 30, 2006, at 5:21 PM, Jeremy Boynes wrote:

On Jul 30, 2006, at 2:55 PM, ant elder wrote:

What about the dependencies of the extension? It looks like right now all the dependency jars still have to go in the boot directory and only the
extension in the extension directory. Is that what you intend?

The spec does not define way to specify the classpath for a composite so for now everything has to be bundled in it on in a parent classloader (and the boot classloader is the parent to the each of the extension composites).

The jar classpath will still work so if you provide a Class-Path entry in the manifest dependencies specified there should be found.

Longer term I think we need a way to define a classpath in the composite. I had a quick discussion a while ago with Oisin about using a Maven repository to hold SCA artifacts and perhaps we can use that here. I can think of two ways we could allow users to do this:

For system services I think this is fine but I wouldn't want to require this of applications. There are a couple of other options we could also provide, based off of OSGi semantics:

1. Allow a jar to specify its dependencies using "pure" OSGi manifest entries when the composite is packaged as a bundle and deployed to an OSGI environment 2. Allow the SCDL to specify dependencies using OSGI semantics. These would then be "baked" down to whatever packaging the host environment supported, perhaps through a pre-deploy step 3.As part of #2, have a way to specify a maven bundle and have the pre-deployer pul it from maven and repackage it.

Generally I don't like pre-packagers but that may be the price people have to pay for deploying on host environments with problematic classloading semantics - e.g. J2EE app servers. In an OSGi or jar launcher environment, things should just work without a predeploy step.

Jim

1) if the composite is provided as a jar file, look in the jar file for Maven metadata stored in META-INF/maven/${groupId}/$ {artifactId}/pom.xml and read the dependencies from there.


2) allow the user to specify a <dependencies> element in the SCDL file listing artifacts to be added to the classpath

We take the list of dependencies, obtain them from a maven repo and add them to the classpath for the composite. This would work for any composite not just ones used as extensions.

Does that seem like it would work?
--
Jeremy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to