Getting Started
Launch Your First Aglet
Step 1: Using a Single Aglet Server
-
Run an aglet server
Make the script Aglets1.0/bin/agletsd in the aglets package executable
by updating the path or changing its directory.
Use a command prompt window to run an aglet server:
|
Run the First Aglet Server |
Windows 95/NT |
agletsd
This aglet server uses a default port (434) to listen for aglet requests. |
Solaris AIX |
agletsd -port 9000
NOTICE:
-
There is no default port.
-
You must always specify the "-port" flag of the aglet server (we
recommend using port numbers above 8000).
|
This aglet server will invoke an aglet viewer, named Tahiti, for managing
aglets. The first time Tahiti is invoked, you will be asked to register.
Please do so. You can find out more about the Tahiti in Tahiti
User's Guide. Instead of using Tahiti, you can invoke a command line aglet viewer
by adding the -commandline option as a parameter for agletsd script.
(The "help" command allows you to get more information on the command line viewer.)
-
Start the HelloAglet.
As a first attempt, use the HelloAglet to send a message to yourself.
To run it, press Tahiti's Create button to get the "Create Aglet"
window. Use the mouse to select its class name "examples.hello.HelloAglet",
and press the Create button in this window. Then, the HelloAglet is created
and its dialog window is displayed.
-
In "Address" text field, type the URL of the current host in which the
aglet server is running.
|
Specify URL |
Windows 95/NT |
atp://your.host.com |
Solaris AIX |
atp://your.host.com:9000 |
Step 2: Using Multiple Aglet Servers
-
Run two aglet servers
Start a second aglet server (with a second Tahiti), running simultaneously
with the one you have already started:
|
Run the Second Aglet Server |
Windows 95/NT |
agletsd -port 500 |
Solaris AIX |
agletsd -port 10000 |
-
Send messages between the two aglet servers
Try the Writer aglet from your first aglet server again.
This time, try to send the aglet with the message to the second aglet server.
-
In the "Which URL" field, type the URL of the host of the second aglet
server. It should be of the form:
-
Type your message in the "Message" text field.
-
Press the Go button. Watch the second Tahiti window for a new
line indicating that a new aglet, carrying the message, has arrived.
Step 3: Using Remote Servers
If possible, run aglet servers on remote machines and play with the
HelloAglet.
Learning Sample Aglets
Learn (and run) our other sample aglets by reading their documentation
(program description and source code), which can be found here.