RRRRHHHH_Code
Diff Revisions
e3043c ...
vs
b09f34 ...
for ruralHouses/src/launcher/RMILauncher.java
|
@@ -10,7 +10,6 @@ |
10 |
10 |
|
import businessLogic.HouseManager; |
11 |
11 |
|
import businessLogic.LoginManager; |
12 |
12 |
|
import businessLogic.OfferManager; |
13 |
|
- |
import businessLogic.OwnerManager; |
14 |
13 |
|
|
15 |
14 |
|
@SuppressWarnings("deprecation") |
16 |
15 |
|
public class RMILauncher { |
|
@@ -37,7 +36,6 @@ |
37 |
36 |
|
boolean bok = runBooking(); |
38 |
37 |
|
boolean hou = runHouse(); |
39 |
38 |
|
boolean off = runOffer(); |
40 |
|
- |
boolean own = runOwner(); |
41 |
39 |
|
boolean log = runLogin(); |
42 |
40 |
|
boolean acc = runAccount(); |
43 |
41 |
|
|
|
@@ -46,7 +44,6 @@ |
46 |
44 |
|
"\t House: "+hou+ |
47 |
45 |
|
"\t Login: "+log+ |
48 |
46 |
|
"\t Offer: "+off+ |
49 |
|
- |
"\t Owner: "+own+ |
50 |
47 |
|
"\t Account: "+acc); |
51 |
48 |
|
} |
52 |
49 |
|
|
|
@@ -126,17 +123,7 @@ |
126 |
123 |
|
} |
127 |
124 |
|
|
128 |
125 |
|
|
129 |
|
- |
private static boolean runOwner() { |
130 |
|
- |
try { |
131 |
|
- |
Remote remoteOwner = new OwnerManager(); |
132 |
|
- |
String authService = "rmi://localhost:9999//OwM"; |
133 |
|
- |
Naming.rebind(authService, remoteOwner); |
134 |
|
- |
return true; |
135 |
|
- |
} catch (Exception e) { |
136 |
|
- |
System.out.println(e.toString()); |
137 |
|
- |
return false; |
138 |
|
- |
} |
139 |
|
- |
} |
|
126 |
+ |
|
140 |
127 |
|
|
141 |
128 |
|
|
142 |
129 |
|
} |