Here's how we run the two netlets in a new Jnode node, with the output:
% jnode 202 -netlet-stdio hello2-provider.xml hello2-client.xml Jnode starting... Initialising Nodality... Bootstrap starting starting hello2-provider netlet:202.0.1: Netlet started starting hello2-client Bootstrap complete netlet:202.0.1: Instantiating org.jtrix.project.helloworld.IHelloFacet netlet:202.0.1: Facet instantiated netlet:202.0.2: Hello, world ^C %
At the end of this Jnode continues running, so we have to hit Control-C to stop it and get our prompt back.
As always, Jnode's first argument is some arbitrary node ID, and we follow it with the usual option to output netlet standard I/O. Then we name the two netlet descriptors we've just created.
Jnode runs the first netlet, and waits til that's finished booting before running the second one. So we can be quite sure Nodality has been told about our FacetProvider by the time the second netlet, the client, asks for the facet.
The output comes from both netlets this time, as well as from Jnode itself. The netlets have output 202.0.1 (for the first netlet, the provider) and 202.0.2 (for the second netlet, the client).
As always, Jnode's buffering means the netlets' output relative to each other does not necessarily line up, but of course each netlet's output does appear in the order in which its own events occur.
Nik Silver 2002-03-09