Now a netlet needs to run in a Jtrix runtime environment, called a ``node''. Jtrix.org has implemented a command line node called ``Jnode''. Don't run this yet, we aren't quite ready for it, but here's what this would look like when we run it with Jnode:
% jnode 201 -netlet-stdio hello1-client.xml Jnode starting... Initialising Nodality... Bootstrap starting starting hello1-client netlet:201.0.1: Hello, world, and thank you for using our service Bootstrap complete ^C %
We need to hit Control-C to terminate Jnode.
The hello world service is a real external service, but we don't need to write any network code. And access to it was achieved by mobile code downloaded and running safely within the Jnode node, but that was all handled for us. Clearly the message the netlet got from the service is not very exciting, but it's a start.
But what is that XML file? And where did it come from? Well, a netlet is described by means of a ``netlet descriptor'', which is the XML file. This describes the netlet to the node, so the can run it. Where did it come from? That's next...
Nik Silver 2002-03-09