DisconnectDemo doesn't inherit from a class that implements a
constructor
taking a single object as its argument. It inherits from
Object since no superclass
is specified. So the super(source) fails. Try
super().
Frank
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED]]On Behalf Of Mahendra Yadav (CTS)
Sent: Saturday, February 26, 2000 3:41 PM
To: [EMAIL PROTECTED]
Subject: DiconnectListener Problem !!class DisconnectDemo implements DisconnectListener {
public DisconnectDemo(Object source){
super(source);
}
public void disconnectOccurred(DisconnectEvent de) {
System.out.println("The reason for disconnecting you : " + de.getReason());
}
}On compiling this code gives error that wrong number of arguements in the constructor.
Can anybody give me some insight into this.Regards
Mahendra
