Well, I have tried out the same program with Weblogic, which generates a
FinderException. That's why I thought Jboss too ought to generate the same.
I didn't know that the documented behaviour isn't so. Sorry, and thanx.
-Prince
> -----Original Message-----
> From: Tom Cook [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, February 19, 2001 4:24 AM
> To: JBoss-User
> Subject: Re: [jBoss-User] Inexplicable behaviour with entity bean.
>
> On Sat, 17 Feb 2001, you wrote:
> > Hi,
> > I have to validate the user's Login Id and Password. To do that I am
> calling
> > a finder method in my Member entity bean, called findByMemberIdAndPwd
> which
> > takes the id and password as parameters. Well, this method is supposed
> to
> > throw a FinderException if it doesn't find a matching entry for the
> given id
> > and password. This not happening! No exception of any kind is generated.
> The
> > JDBC driver just shows 0 rows returned by the query. Someone please help
> me
> > out. What could be the reson for no exception being generated???
> > I am using JBOSS 2.0 FINAL + TOMCAT(Embedded) + ORACLE 8.1.5.
> Jboss+Tomcat
> > on Win NT 4.0 machine and Oracle running on Linux.
> > -Prince
>
> This is in fact the documented behaviour for finder methods. The only
> method
> which throws any exception when it can't find a match is findByPrimaryKey,
> which throws a NoSuchEntityException (a subclass of FinderException).
> Otherwise, CMP finders just return an empty collection. This is in the
> jboss
> doco, but I can't tell you where, since I don't have web access right now.
>
> What makes you think it should throw a FinderException?
>
> Tom
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]