I think it was a fair question and in fact an important one as using narrow is
one of the portability issues developers must be aware of.
T A Flores wrote:
> I don't think that attack was very professional or called for.
>
> >From my POV, everyone is entitled to make a mistake every now and
> again.
>
> So don't take the comment personally that guy's rubber band is probably
> wound just a little too tight.
>
> ----- Original Message -----
> From: Craig Herder <[EMAIL PROTECTED]>
> Date: Thursday, February 22, 2001 12:55 pm
> Subject: Re: Initial Context Question
>
> > I would like to apologize to anyone on the list who I've offended
> > by asking this question. But I'd rather be ignored than insulted
> > for future reference.
> >
> > Thanks to those who replied. :)
> >
> > Craig H.
> >
> >
> > -----Original Message-----
> > From: srinath mandalapu [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 22, 2001 1:14 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Initial Context Question
> >
> >
> > Please do your homework before posting such stupid questions to
> > the entire
> > mail list. I don't think you can learn EJB by posting questions to
> > EJBINTEREST mail group. Better to get some good books on EJB and
> > go through
> > them before posting any silly questions to EJB.
> >
> > -- Sri
> > ----- Original Message -----
> > From: "Craig Herder" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, February 22, 2001 1:42 PM
> > Subject: Initial Context Question
> >
> >
> > > Hi,
> > >
> > > I am new to EJB. Could someone explain the following
> > statement(s) in
> > terms
> > > of why
> > > I need to typecast a generic object into the home interface
> > type, using
> > the
> > > narrow
> > > method? What's going on behind the scene here?
> > >
> > > Object boundObject = context.lookup("java:comp/env/ejb/HelloHome");
> > > helloHome = (HelloHome) PortableRemoteObject.narrow(boundObject,
> > > HelloHome.class);
> > >
> > > TIA,
> > >
> > > Craig Herder
> > >
> > >
> >
> ========================================================================
> ===
> > > 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".
> >
> >
> ========================================================================
> ===
> > 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".
===========================================================================
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".