(TestService) manager.startService(propertyKey + "1");
logger.log(Level.FINE, "activating test service 2");
service2 =
(TestService) manager.startService(propertyKey + "2");
ActivatableServiceStarterAdmin admin1 =
(ActivatableServiceStarterAdmin) manager.getAdmin(service1);
ActivatableServiceStarterAdmin admin2 =
(ActivatableServiceStarterAdmin) manager.getAdmin(service2);
if (!admin1.getGroupID().equals(admin2.getGroupID())) {
throw new TestException("Test services have different "
+ "ActivationGroupIDs which means that services are not "
+ "being run in a shared VM");
}
// check proxy codebases are as expected
String expected_codebase1 = admin1.getCodebase();
String expected_codebase2 = admin2.getCodebase();
String proxy_codebase1 =
RMIClassLoader.getClassAnnotation(service1.getClass());
String proxy_codebase2 =
RMIClassLoader.getClassAnnotation(service2.getClass());