Hi all,
Thanks for your feedbacks.
I have changed the code however when called the code below :
home.create("1","weetat");
The record was created but not in my database.
May I know how to set database in jboss ? Do i need to set jboss.wml or
jaws.xml ?
Thanks for your info. wt
"Castro, David" wrote:
>
> PRO.Narrow makes your code portable to IIOP. Jboss does not currently
> support IIOP but probably will in the future.
>
> > -----Original Message-----
> > From: Ricky [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 23, 2001 7:17 PM
> > To: JBoss-User
> > Subject: Re: [jBoss-User]
> > Re:[jBoss-User]java.lang.ClassCastException:java.rmi.MarshalledObject
> >
> >
> > 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("Enter
> > prise1"),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]
> >
>
> ---------------------------------------------------------------------
> This message (including any attachments) contains confidential, proprietary
> or privileged information intended for a specific purpose and individual(s),
> and is protected by law. If you receive this message in error, please
> immediately delete it and all copies of it from your system, destroy any
> hard copies of it and notify the sender. Any unauthorized disclosure,
> copying or distribution of any part of this message, or the taking of any
> unauthorized action based on it, is strictly prohibited.
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]