2. Registering For Session Termination Events
Step 1: Updating the local hosts file
Step 2: Import the source code
Step 4: Running the Sample Program
1.
Introduction
This tutorial will demonstrate how to subscribe for session termination events via the Notification Producer Service. |
2.
Registering For Session Termination Events
Description
of Tutorial
This tutorial describes how to utilize the features provided by the SOA CCT Web Services. It provides a simple demonstration of how to detect session termination and session termination imminent events. 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 This tutorial utilizes 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.
|
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
|