To try this out, we first need to compile our classes and interface. We'll put all the above in a JAR file named secret.jar. Nothing else goes into this JAR.
Now we can use this to create two netlet descriptors: one for the provider and one for the client:
% ls
secret.jar
% jtrixmaker -type netlet -outfile secret-client.xml \
-jardirs . -jars secret.jar \
-classname org.jtrix.project.documentation.threading.SecretClient
% jtrixmaker -type netlet -outfile secret-provider.xml \
-jardirs /usr/lib/jtrix . -jars nodality_facet.jar secret.jar \
-classname org.jtrix.project.documentation.threading.SecretProvider
% ls
secret-client.xml secret-provider.xml secret.jar
%
We'll run these on the same node.
Nik Silver 2002-03-09