Ok, I was thinking that the first ejbActivate would be called by the container in
the scope of the ejbFindByPrimaryKey. Thanks for the clarification.
>
> I agree with you on this (and I think JBoss behaves properly in case of
> finder exceptions), but this wasn't your case, if I've understood it well.
> In your case you called fBPK (findByPrimaryKey), which returned "this bean
> exists".
> Then you called a method on it.
> Since Entity EJB are *not* in ready state after a find call, if you have the
> finder method return correctly, but you have a problem in ejbActivate or
> ejbLoad, then the problem only appears when you call a method on your bean,
> because that method call triggers execution of ejbActivate / ejbLoad.
> The bean exists in the DB, so fBPK should return "exists". The fact that you
> cannot activate the bean instance is somehow unrelated (for example you just
> want to know if the bean is there, and you don't want call any method on
> it).
>
> Regards,
>
> Simon
>
>
>
> > It just seems like a more natural feedback to the
> > client. If this is not something trival
> > to do I can live with the change you made.
> >
> > ----- Original Message -----
> > From: "Bordet, Simone" <[EMAIL PROTECTED]>
> > To: "'jBoss'" <[EMAIL PROTECTED]>
> > Sent: Thursday, January 04, 2001 3:42 PM
> > Subject: RE: [jBoss-User] NullPointerException in
> > EntityInstanceIntercepto r for BMP with String primary key
> >
> >
> > > Hey Scott,
> > >
> > > > I tried it and this now returns a
> > java.rmi.NoSuchObjectException on
> > > > the business method calls. Shouldn't this be failing in the
> > > > finder operation though?
> > >
> > > Well, in EJB spec 1.1, 12.3.2, it says that in case of
> > exceptions thrown by
> > > ejbActivate() the container must throw RemoteException to
> > the client, and
> > > NoSuchObjectException is a subclass of it.
> > > If I missed something, let me know and we'll discuss it.
> > >
> > > Simon
> >
> >
> >
> >
> > --
> > --------------------------------------------------------------
> > 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]