Hi.
Can I count on "catch(FinderException ...)" to determine if a CMP entity
exist or not ?
for example, if I want to prevent two users registering with same email, can
i do something like this :

try {
        User user = UserHome.findByEmail(email);
        throw new EmailAlreadyExistException();
}catch (FinderException fe){
        User user = UserHome.create(....);
}

It worked in Final 2.0, but when using pre2.1, I suspect the container threw
a ObjectNotFoundException instead, and I dont know if FinderException are
for internal container use or not.

Thanks,
Shahar.



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

Reply via email to