We run these examples as usual, starting a node with both netlets on it. Just as with the Hello2Client and Hello2Provider we run the provider first, so it can advertise the facet, then the client:
% jnode 206 -netlet-stdio secret-provider.xml secret-client.xml Jnode starting... Initialising Nodality... Bootstrap starting starting secret-provider starting secret-client netlet:206.0.1: Netlet started netlet:206.0.1: Instantiating org.jtrix.project.documentation.threading.ISecretHolderFacet netlet:206.0.1: Facet instantiated Bootstrap complete netlet:206.0.2: The secret is: Send three and fourpence ^C %
We can see we have obtained the secret successfully. We terminate the node by hitting Control-C as usual.
Recall that output from the node and each netlet does not appear in sequence with each other, though they do appear in sequence within themselves. So nelet 1, the provider, will show ``Netlet started'', ``Instantiating...'' and ``Facet instantiated'' always in that sequence. But the its message ``Netlet started'' may appear after the node has announced it's starting the client netlet. Despite this, the node will only start netlet 2, the client, after netlet 1 has completed returned from its initialise() method.
Nik Silver 2002-03-09