Why does my application pause after call to TeamPlatform.startup();
I am using the RTC 6.0.3 Plain Java API running on Windows to extract the number of used licenses. The application pauses for several minutes when it calls TeamPlatform.startup(). I get the error message:
"log4j:WARN No appenders could be found for logger (com.ibm.team.repository.common.internal.util.InternalTeamPlatform).
log4j:WARN Please initialize the log4j system properly."
I am not sure how significant this is to the issue. The code is below:
import com.ibm.team.repository.client.ITeamRepository;
import com.ibm.team.repository.client.TeamPlatform;
import com.ibm.team.repository.client.internal.TeamRepository;
import com.ibm.team.repository.common.ILicenseAdminService2;
import com.ibm.team.repository.common.TeamRepositoryException;
import com.ibm.team.repository.common.model.UsedLicenseInfoDTO;
import com.jlr.rmdv.admintools.performancesaas.x260QACLOUDV2.RTCLoginHandler;
public class Licenses {
public static int printLicensesIssued (String userId, String password) throws TeamRepositoryException {
TeamPlatform.startup();
ITeamRepository repo = TeamPlatform.getTeamRepositoryService().getTeamRepository("https://wwwcqa.pd-dv.jlrint.com/ccm/");
repo.registerLoginHandler(new RTCLoginHandler(userId, password));
repo.login(null);
ILicenseAdminService2 licenseService = (ILicenseAdminService2) ((TeamRepository)repo).getServiceInterface(ILicenseAdminService2.class);
UsedLicenseInfoDTO licenseInfo;
licenseInfo = licenseService.getUsedLicenseInfo();
return licenseInfo.getCountedActiveLeases();
}
}