2. Registering For Specific Agent Events
Step 1: Updating the local hosts file
Step 2: Import the source code
Step 4: Running the Sample Program
Step 5: Looking at some of the TCP packages
2.
Registering For Specific Agent Events
Description
of Tutorial
This tutorial describes how to utilise the features provided by the SOA CCT Web Services. It demonstrates how to detect agent log in events and ready state change events. We will also use a tool to capture TCP/IP packets and display what some of the specific XML packages look like. The main procedures in this tutorial are: Step1: Updating the local hosts file Step 2: Import the Source Code Step 4: Running the Sample Program Step 5: Looking at some of the TCP packages This tutorial utilises the Agent Terminal Service and the Notification Producer Service to demonstrate this functionality. Please download the source code here. Notes about this tutorial
The SOA Web Services must be installed and running on an available server. The tutorial uses eclipse as the IDE, Java 8 JRE. Common programming practices such as delegates, events, threading, and exceptions are left to the individual programmer and are not covered in this tutorial. Exception handling is not shown in the code samples for brevity. You must determine exactly where or how you want to implement the example code shown in these tutorials in your own application. To instigate events being received by the consumers, CCT Ref client can be used to login and logout agents as well as going ready/not ready. This tutorial uses a program called SmartSniff 2.05 to capture TCP/IP packages. This program uses the source code from Tutorial 2 and as such only the code changes will be shown in the code samples. |
Step 1: Updating the local
hosts file
1. Open up the hosts file and map the host name of your server to an IP address |
Step 2: Import the source code
To import the project zip file: 1. Open Eclipse IDE 2. Select File > Import > Existing Projects into Workspace 3. Select the project zip file 4. Press the finish button
|