Hi,
i have developed a webpage where i can specify the person id, and the java code behind make a connection to ConfServer for retrieve information about that person.
But if i launch two request at the same time, the second one go in error.
Anyone can help me?
The code that i have used for connect to CfgServer is this:
ConfServerProtocol confServerProtocol = new ConfServerProtocol(new Endpoint("ConfServer","hostname",port));
confServerProtocol.setClientApplicationType(CfgAppType.CFGSCE.asInteger());
confServerProtocol.setClientName(clientname);
confServerProtocol.setUserName(username);
confServerProtocol.setUserPassword(password);
IConfService confService = ConfServiceFactory.createConfService(confServerProtocol);
confServerProtocol.open();
CfgPersonQuery queryPerson = new CfgPersonQuery();
queryPerson.setUserName(PersonId);
Collection<CfgPerson> cfgPersons = confService.retrieveMultipleObjects(CfgPerson.class, queryPerson);
The error is this:
java.lang.IllegalArgumentException: ConfService has already been created for this endpoint.