Hello there,

is it possible (in Tuscany 1.6) to add classes to a node without having 
to package them in a composite? Or add them to the domain so that they 
will be available to all nodes in the domain? I. e. I want to say something
like node.addToClasspath(<pathToJar>)

Alternatively, I could imagine building a composite with a component that does 
not offer any service at all, but simply contains the classes, to be deployed 
with 
separate composites that add whatever service definitions and bindings are
relevant for a node. Would this be possible, i. e. could I completely separate 
the component and service definitions in different *.composite files?

Background:

I have a composite (packaged with all the classes) in Eclipse project 1.
In another project 2 I simply define a second *.composite file that gives the
the service from jar1 a different binding.
 
I would prefer not to include the classes from project 1 in the jar file of
project 2 (in case they are run in the same JVM, I handle this case with
import.java/export.java in the META-INF/sca-contribution.xml). 

I also do not want to deploy the jar of project1 in my node, because I do not
want the node to make the service available over those bindings.

So, in order to avoid a ClassNotFoundException, I would simply want to add 
the jar 1 to the class path of the node running the service from jar 2.
But neither the SCANodeFactory nor the Node or SCADomain have this
capability.

To me, it seems a reasonable thing to do, and I believe it is possible in 
Frascati, at least the screenshots from their domain manager suggest so.


-- Sebastian 

Reply via email to