Heh.  There was no reference to CMP in the original post.  I just
assumed BMP.  Apologies.

Mattias

marc fleury wrote:
> 
> No returning null is correct these are CMP beans
> give RMH some credit will you, he *knows* EJB :)
> 
> marc
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Mattias V.
> > Bertelsen
> > Sent: Tuesday, August 22, 2000 4:24 PM
> > To: jBoss
> > Subject: Re: [jBoss-User] R M-H Examples (and Ken's stuff)
> >
> >
> > Sebastien Alborini wrote:
> > >
> > > Peter Shillan wrote:
> > > >
> > > > Hi All,
> > > >
> > > > I downloaded Ken's jBoss stuff for the R M-H examples. I
> > built everything,
> > > > but got a client error so made the simplest client I could
> > make, just to
> > > > create a bean. I got the same error. I try to create a cabin
> > bean, and I get
> > > > the following, server-side and client-side respectively.
> > jBoss looks OK, but
> > > > the client is not!
> > > >
> > > > I have CVS from about 4hrs ago, so I should be current(-ish!!).
> > > >
> > > > Peter.
> > > >
> > >
> > > Hi!
> > >
> > > I tried it, and ended up with the same result. This comes from
> > > com.titan.cabin.CabinBean.ejbCreate():
> > >
> > >     public CabinPK ejbCreate(int id){
> > >         this.id = id;
> > >         return null;
> > >     }
> > >
> > > The return type is the type of the bean's primary key (CabinPK, which
> > > only contains an int), but the method returns null.  Is this legal?  (In
> > > testbeans for example, the ejbCreate method for EntityPKBean returns the
> > > bean's PK.)
> > >
> > > Sebastien
> > >
> >
> > That seems pretty bogus to me.  It should definitely not return null.
> > Also, I thought the whole point of the ejbcreate method was to verify if
> > the entity by that key actually exists in the database?  All of my beans
> > 'select id where id=?' and verify there is a result set.
> >
> > Mattias
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Problems?:           [EMAIL PROTECTED]
> >
> >
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to