Some bugs have been fixed
[RRRRHHHH_Code] / ruralHouses / src / businessLogic / BookingManager.java
index f0d0a54..519dc54 100644 (file)
@@ -75,6 +75,11 @@ public final class BookingManager extends UnicastRemoteObject implements Booking
 
        public void denyBooking(Booking b) throws RemoteException{
                                this.dbMngr.removeBooking(b);
 
        public void denyBooking(Booking b) throws RemoteException{
                                this.dbMngr.removeBooking(b);
+                               try {
+                                       MailManager.getInstance().Send(b.getClient().getMailAccount(), "Your booking has not been accepted","We are sorry");
+                               } catch (MessagingException e) {
+                                       e.printStackTrace();
+                               }
        }
 
 
        }