Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 5 Using the Example Code : ASChat : Starting ASChat

Starting ASChat
The following examples show how to invoke ASChat for each of the API sets:
Java Invocation
java ASChat -metaspace examplems
C Invocation
AS_HOME\examples\dotnet\ASChat.exe -metaspace examplems
.NET Invocation
AS_HOME\examples\dotnet\ASChat.exe -metaspace examplems
ASChat is hard-coded to join the ASChat space as a seeder. So it is not necessary to run other instances of as-agent for the ASChat space to have seeders.
Starting ASChat With Security
The following example shows the command line options that you can be use when starting ASChat to have it join the security domain exdomain:
-discovery tcp://127.0.0.1:50000 -security_token exdomain_token.txt
These command line options start ASChat using the default metaspace named ms and allow it to connect to a security domain controller that has been started using the example security policy file example_policy.txt.
Using ASChat
After ASChat initializes, the following options are displayed from the main loop of the program, which allow you to perform actions on the space or metaspace:
Please enter your name:
After you enter your name, the following message is displayed:
[<your name>] has entered the chat room!
Any message you now enter into the command window is displayed to all members of the space in the form:
[<your name>] <your message>
Type quit in the command window to exit the program.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved