The ConnInfo structure contains the following client connection information.
The EventListener interface section is the marker interface for all types of event listeners.
The ConnEventListeners interface defines the following operations.
The server-side application is responsible for the implementation of the ConnEventListener interface as well as the processing of the events being pushed into the listener.
The EventQueueManager interface is used as a handle by the server-side implementation for the registration of event listeners. This interface defines the the following operations.
An EventQueueManager object is created upon ORB initialization. Server-side implementation returns the
EventQueueManager object reference using the following code:
The SampleServerLoader class contains the
init() method which is called by the ORB during initialization. The purpose of the ServerLoader is to register an
EventListener by creating and registering it to the
EventQueueManager.
The ConnEventListenerImpl contains a connection event listener implementation sample. The
ConnEventListener interface implements the
conn_established and
conn_closed operations at the server-side application. For more information, see
“ConnEventListeners interface”. The implementation enables the connection to idle for 30000 milliseconds while waiting for a request at the server-side. These operations are called when the connection is established by the client and when the connection is dropped, respectively.