Merge branch 'master' of https://xp-dev.com/git/RRRRHHHH_Code
[RRRRHHHH_Code] / ruralHouses / src / businessLogic / BookingManager.java
index 138484b..356d3ba 100644 (file)
@@ -41,6 +41,11 @@ public final class BookingManager extends UnicastRemoteObject implements Booking
 
        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();
+                               }
        }