What to do

Note: At the time of writing the external ``hello world'' service is not available. However, this section has been left in for demonstration.

The service we're going to use is a real on-line service, and just like all Jtrix services it needs a warrant. Go to http://www.jtrix.org/warrant/hello-warrant.xml and get a hello warrant for the hello world service. Each warrant is individually named, so we need to have registered first. Save that warrant in a file called hello-warrant.xml.

Now we can use the launcher as follows:


% launcher
Initialising Nodality...
launcher> connect myservice hello-warrant.xml
launcher> list
myservice
launcher> list myservice
  Facet: org.jtrix.facets1.service.common.IConsoleFacet
  Facet: org.jtrix.project.helloworld.IHelloFacet
  Facet: org.jtrix.project.skeleton3.facets.ISkeletonFacet
myservice.getMessage - ( Return: java.lang.String )
launcher> myservice.getMessage
Hello, world, and thank you for using our service
launcher> quit

% 

That's it! We've got the message. We've used an arbitrary service, fulfilled by mobile code (a netlet) which has downloaded and linked back to its (distributed) base to do its work, and all in a completely safe, sandboxed environment. Here's a bit more detail...

Nik Silver 2002-03-09