I don't understand. When I start the DomainManagerLauncher and then use the
web ui to configure and start my nodes, I can only set the classpath for
the VM in which the domain manager runs. Do all nodes in the domain
automatically share that classpath? I can't imagine that, as the nodes
may be distributed over differently configured servers. (I am not talking
deployment of web apps etc., just simple Java components in a Tuscany
runtime.)

-- Sebastian

> -----Original Message-----
> From: Raymond Feng [mailto:[email protected]]
> Sent: Thursday, September 02, 2010 6:17 PM
> To: [email protected]
> Cc: <[email protected]>
> Subject: Re: Q: Adding classes to a node
> 
> You can just add these jars to the classpath. In a web app, copy them
> into WEB-INF/lib.
> 
> Raymond Feng
> Sent from my iPhone
> 
> On Sep 2, 2010, at 8:48 AM, "Millies, Sebastian"
> <[email protected]> wrote:
> 
> > thanks for the links, Luciano. I dare say I am confused about
> > many things. So I will put a simpler question:
> >
> > If my contribution depends on additional libraries (jar files
> > for which I do not own the sources), how do I package these
> additional
> > libraries with my contribution for deployment in an SCA
> > node?
> >
> > -- Sebastian
> >
> > -----Original Message-----
> > From: Luciano Resende [mailto:[email protected]]
> > Sent: Thursday, September 02, 2010 4:24 AM
> > To: [email protected]
> > Subject: Re: Q: Adding classes to a node
> >
> > On Wed, Sep 1, 2010 at 11:39 AM, Millies, Sebastian
> > <[email protected]> wrote:
> >> 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?
> >>
> >
> > Not sure if you are overloading the term "composite" above where it
> > really means a contribution.
> > Anyway, the following integration tests might be of some help.
> >
> > https://svn.apache.org/repos/asf/tuscany/sca-java-1.x/branches/sca-
> java-1.6/itest/contribution-import-export/
> >
> > The store tutorial also provides some deployment scenarios similar to
> > what you have mentioned.
> >
> > https://svn.apache.org/repos/asf/tuscany/sca-java-1.x/branches/sca-
> java-1.6/tutorials/store/

Reply via email to