Hi,

Because there is no contractual guarantee that any BMP finder
method is free of side-effects, this optimization is not spec
compliant (9.3.2 ...find... invokes a matching ejbFind method).
HOWEVER, the most common case by far will be that checking
the cache rather than calling the bean finder method will lead to
appropriate behavior. I would make this optimization the default,
with the option to disable it for marginal cases.

-Dan

On 1 Dec 00, at 8:10, Keith L. Musser wrote:

> Rickard,
>
> Also, I think it is legal for an "ejbFind" method to throw exceptions
> other than FinderException and RemoteException.  (right?)  It would
> probably be best to bypass the optimization if another exception is
> declared, since that probably means that the bean provider is
> implementing some additional logic.
>
> Just a thought.
>
> - Keith
>
> -----Original Message-----
> From: Keith L. Musser <[EMAIL PROTECTED]>
> To: jBoss <[EMAIL PROTECTED]>
> Cc: Rickard �berg <[EMAIL PROTECTED]>
> Date: Friday, December 01, 2000 7:36 AM
> Subject: Re: [jBoss-User] findByPrimaryKey performance
>
>
> >FYI:  I got a very significant performance boost when I put "finder"
> >results into my BMP caching system.  I would expect the performance
> >boost to be even greater when you put it into the JBoss system, since
> it
> >would avoid a few layers of the call stack as well as the DB hit in my
> >"ejbFind" method.
> >
> >- Keith
> >
> >-----Original Message-----
> >From: Rickard �berg <[EMAIL PROTECTED]>
> >To: jBoss <[EMAIL PROTECTED]>
> >Date: Friday, December 01, 2000 5:09 AM
> >Subject: Re: [jBoss-User] findByPrimaryKey performance
> >
> >
> >>Hi!
> >>
> >>marc fleury wrote:
> >>> this is spec compliant, if you want a custom version either hack it
> >yourself
> >>> or talk to us (Rickard and I) for a custom version
> >>> marc
> >>
> >>Actually, I think the suggestion would also be spec compliant. I will
> >>add this to JBoss.
> >>
> >>regards,
> >>  Rickard
> >>
> >>--
> >>Rickard �berg
> >>
> >>Email: [EMAIL PROTECTED]
> >>
> >>
> >>--
> >>--------------------------------------------------------------
> >>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]
>




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

Reply via email to