}
public void sendEvent(int eventType, Exception ex,
Object connectionHandle) {
Vector list = (Vector) listeners.clone();
ConnectionEvent ce = null;
if (ex == null) {
ce = new ConnectionEvent(mcon, eventType);
} else {
ce = new ConnectionEvent(mcon, eventType, ex);
}
if (connectionHandle != null) {
ce.setConnectionHandle(connectionHandle);
}
int size = list.size();
for (int i=0; i<size; i++) {
ConnectionEventListener l =
(ConnectionEventListener) list.elementAt(i);