Hi Mica, 

  The PortableRemoteObject.narrow is for narrowing remote reference.
  I have did it for a while without any errors.
 
  I did not see why i must cast it like you have did it.
  Some more explaination please.

Thanks.

MicaCooper wrote:
> 
> I see one thing wrong...
> You should be doing a cast like this:
> 
> Enterprise1Home bh =
> (Enterprise1Home)PortableRemoteObject.narrow(ctx.lookup("Enterprise1"),Enter
> prise1.class);
> 
> The PortableRemoteObject.narrow is a requirement of EJB1.1.
> 
> Mica Cooper
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Ricky
> Sent: Friday, February 23, 2001 6:45 PM
> To: JBoss-User
> Subject: Re: [jBoss-User]
> Re:[jBoss-User]java.lang.ClassCastException:java.rmi.MarshalledObject
> 
> Hi Rickard ,
> 
>   Thanks for your kind advise.
> 
>   I have  another weird problems in Jboss , we try to execute the code
> below .
> 
>      InitialContext ctx = new InitialContext(props);
>      Enterprise1Home bh = (Enterprise1Home)ctx.lookup("Enterprise1");
>      bh.create("2","weetat");
> 
>   All are well except it did not update in my postgresql7.0 table.The
> record is not display in the table.
>   Do i need to set anything in the database ? Or did i need to create
> JAWS.xml or Jboss.xml ?
> 
>   What are the difference between jboss.xml and JAWS.xml ? What are
> their purposes?
> 
>   Thanks wt
> 
> Rickard Öberg wrote:
> >
> > Hi!
> >
> > Ricky wrote:
> > >   May i know what do you mean by updating the clients jnp-client.jar
> > > file.
> > >
> > >   Please forgive me that I asked so many question cause i just started
> > > to use jboss.
> >
> > Copy all files from /client to your clients classpath.
> >
> > /Rickard
> >
> > --
> > Rickard Öberg
> >
> > Email: [EMAIL PROTECTED]
> >
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > List Help?:          [EMAIL PROTECTED]
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> List Help?:          [EMAIL PROTECTED]
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> List Help?:          [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to