blob: 64cf21eb65eed5b652eb42a6de53c5e4b3842fe4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package examples.entity.joined.client;
import java.util.List;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import examples.entity.joined.interfaces.RoadVehicleStatelessJoined;
public class RoadVehicleClient {
public static void main(String[] args) {
InitialContext ic;
try {
ic = new InitialContext();
RoadVehicleStatelessJoined rvs = (RoadVehicleStatelessJoined)ic.lookup(RoadVehicleStatelessJoined.class.getName());
rvs.doSomeStuff();
List l = rvs.getAllCars();
for (Object o : l) {
System.out.println("Car: "+o);
}
}
catch (NamingException e) {
e.printStackTrace();
}
}
}
|