Writer is an aglet-based implementation of the "write" application in Unix. It consists of two aglets, one of them is stationary (Writer) and the other is mobile (WriterSlave). The latter is dispatched by Writer to a remote location, where it will pops up a window and displays a message from the Writer aglet. Finally, the WriterSlave returns to Writer and delivers an acknowledgment from the reader of the message.
To be written.
Run at least two aglet servers in your network (read here how to run an aglet server).
Use the "new aglet" panel of Tahiti to create your Writer aglet by specifying its class name: "samples.patterns.Writer"(read Tahiti User's Guide for more information about aglet creation). When the Writer aglet is created, its dialog window is displayed:
atp://aglets.trl.ibm.com
or, if your aglet server is running on a port other than the default one (434):
atp://aglets.trl.ibm.com:500
In order to update the AddressBook, click once to display its panel. Then, either select an address and remove it (via the delete button) or add the current address in the "Address" field (via the add button). Click on the close button to hide the AddressBook panel.
When the WriterSlave aglet arrives at the target host, it pops up a new window that looks like this:
The window includes the sender's name, the host name and the original message text. The window is displayed for at most 10 seconds unless the receiver presses either the Quit or Thank buttons, causing the window to be closed.
When the WriterSlave aglet returns to its master, it delivers as an acknowledgment the "Returned" String, which is displayed on the message panel (the bottom panel) of the Writer's interaction window. When the Thank button of the message window is pressed, the acknowledgment is the "Returned: THANKS!!" string.
Read here about troubleshooting for the sample aglets.