Some bugs have been fixed
authorcamjan <jcampos004@ikasle.ehu.es>
Wed, 20 May 2015 16:45:21 +0000 (18:45 +0200)
committercamjan <jcampos004@ikasle.ehu.es>
Wed, 20 May 2015 16:45:21 +0000 (18:45 +0200)
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();
+                               }
        }
 
 
        }