projects
/
RRRRHHHH_Code
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some bugs have been fixed
[RRRRHHHH_Code]
/
ruralHouses
/
src
/
businessLogic
/
BookingManager.java
diff --git
a/ruralHouses/src/businessLogic/BookingManager.java
b/ruralHouses/src/businessLogic/BookingManager.java
index
f0d0a54
..
519dc54
100644
(file)
--- a/
ruralHouses/src/businessLogic/BookingManager.java
+++ b/
ruralHouses/src/businessLogic/BookingManager.java
@@
-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();
+ }
}
}