Simon Laws wrote:

On 9/16/07, ant elder <[EMAIL PROTECTED]> wrote:

On 9/16/07, Simon Laws <[EMAIL PROTECTED]> wrote:

<snip>

A question though is should we flip the samples over to use NodeImpl
instead

of SCAdomain?


To save digging around in the code / ML, what is the new way exactly?
Currently things do:

  org.apache.tuscany.sca.host.embedded.SCADomain.newInstance("
helloworldws.composite");

what is the new replacement approach?

  ...ant




 org.apache.tuscany.sca.node.impl.NodeImpl node = new SCANodeImpl();
 node.start();
 node.getContributionManager().startContribution(The URL to your
contribution);

For example, for test purposes the URL could be:

SCANodeUtil.findContributionFromComposite(???.class.getClassLoader(),"
helloworldws.composite"));

So it's more lines but removes some of the mystery about where the
contributions are found.

Simon

I don't like this at all.  Is there a problem with staying with
what we currently have until we can design a clean replacement API?

  Simon


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

Reply via email to