Before
you can execute the model, you must
start the ORB daemon. With TAO, you must also register the new Server component
in the implementation repository.
Do the following:
Procedure
Run the ORB daemon (for example, orbixd).
Once the daemon is running, the following message is displayed in
a new window:
[orbixd: Server "IT_daemon" is now available to the network]
Open a command
prompt window, change directory
to where the server program (server.exe) is located,
and register the server component with the ORB. In TAO, the command
is as follows:
> putit Server <path>\server.exe
The first argument to the putit command
is the server logical name, which consists of the component name by
default. The second argument is the location of the server applicatiom,
which must include the full path - even if it is the current directory.
If the putit command is successful,
a message like the following example is displayed:
[<connection#>: New Connection (<hostname>,
IT_daemon, *, <username>, pid=<program ID>,
optimized) ]
To check which servers are registered, use the following TAO command:
> lsit
In IBM® Rational® Rhapsody®,
select Code > Run Client.exe.
On the Animation
toolbar, click Go to
start the program. The program creates an instance of A on
startup.
Open the animated statechart
for the A instance
and generate an evTry() event using the Event Generator.