You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Tobias Arnold <ar...@web.de> on 2008/10/02 16:46:30 UTC

Re: Starting and Stopping nodes from within a java program

Hi Raymond,

thank you very much that really helped.

Tobias

2008/9/30 Raymond Feng <en...@gmail.com>

> Hi,
>
> Please take a look at the code at tuscany-node-manager and
> tuscany-domain-manager modules, especially:
>
> org.apache.tuscany.sca.implementation.node.manager.NodeProcessCollectionImpl.SCANodeVM
>
> Thanks,
> Raymond
>
> From: Tobias Arnold
> Sent: Tuesday, September 30, 2008 6:26 AM
> To: user@tuscany.apache.org
> Subject: Starting and Stopping nodes from within a java program
>
>
>
> Hi all,
>
> I did a small tool to create sca contribution packages. Now I want to
> deploy these packages to a Tuscany domain. Every composite should run in its
> own node (like in the calculator-distributed example). Therefore I'm
> searching for a way to deploy new Packages automatically. I'm planning to
> start a domain manager and modify the workspace.xml, cloud.composite and
> domain.composite with my tool (like the domain manager web interface does).
> I also have to generate the node.composite. My problem is, I don't know how
> to start and stop a node. The sematics should be like clicking on the start
> and stop link in the web interface. But I don't know how to do this from my
> java program. The NodeLauncher blocks my program and the node stops when I
> close the program. Maybe I'm not exprerienced enough, does anyone have a
> Tip? Or can think of a simpler way to solve my problem?
>
> Thanks!
>
> Tobias
>