Hello Richard,
i have been developing the cabin reservation example given in your book
on EJB.
There is this last example of  stateful session bean -- TravelAgent
which has a method bookPassage(). This method should throw
DoubleBookingException when a duplicate reservation occurs.

But i am not able to get the exception. Hence i see duplicate records in
my reservation table.

Seeing the code it is quite apparent that the method won't throw this
exception as the create method of reservationbean(which is called by
bookPassage method)  does not do anything to check double booking
neither the reservation table contains any primary key.
Is it left upon the readers to handle the duplicateException  in the
reservation bean or is there some other logic?
Please help.
Rgds.,
Komal.

--
**************************************************************
Komal Mangtani
Senior Software Engineer-Enterprise Solutions
Wipro Technologies
72, Keonics, Electronics City,
Hosur Main Road,
Bangalore-561 229, India
Tel: 91-80-8520416/9 Extn. 1207
Fax: 91-80-8520478
E-mail:[EMAIL PROTECTED]
www.wipro.com
The World's First SEI CMM Level 5 Software Services Company
**************************************************************

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to