yes, as a matter of fact I use instanceof all the time in my .equals()
overrides in my PK classes.
Al
----- Original Message -----
From: "Shehrawat, Rishi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 11, 2000 10:36 AM
Subject: Using instanceof..
>
> Object objref = ic.lookup("HelloHome");
>
> if (objref instanceof ByeHome) {
> file://can i do this ??
> }
>
> HelloHome home = (HelloHome)PortableRemoteObject.narrow(objref,
> HelloHome.class);
> can i use instanceof on object returned by lookup.. before
narrowing
> it
>
> TIA
> Rishi Shehrawat
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".