is it possibile read session timeout by api plain?
hello guys
i need to know if exists any way to read session timeout of RTC server using Java Api Plain.
in my project login to platform is very slowly, for this reason i need session hold on.
in this forum i find info about how to read timeout param from web.xml but unfortunately i don't have access to this file and i wanto build a strong application that can run also RTC master change this parameter.
tnx at all
bye Vincenzo
i need to know if exists any way to read session timeout of RTC server using Java Api Plain.
in my project login to platform is very slowly, for this reason i need session hold on.
in this forum i find info about how to read timeout param from web.xml but unfortunately i don't have access to this file and i wanto build a strong application that can run also RTC master change this parameter.
tnx at all
bye Vincenzo
3 answers
Yes, here is how I set the timeout
srcServer = TeamPlatform.getTeamRepositoryService().getTeamRepository(Properties.get(SourceServerURL));
// setup for login
srcServer.registerLoginHandler(new LoginHandler(Properties.get(SourceUserID), userpw));
// and set the connection timeout, has to be set before login
// in seconds
srcServer.setConnectionTimeout(master_connection_timeout);
// login, will throw error if not authorized
srcServer.login(null);
srcServer = TeamPlatform.getTeamRepositoryService().getTeamRepository(Properties.get(SourceServerURL));
// setup for login
srcServer.registerLoginHandler(new LoginHandler(Properties.get(SourceUserID), userpw));
// and set the connection timeout, has to be set before login
// in seconds
srcServer.setConnectionTimeout(master_connection_timeout);
// login, will throw error if not authorized
srcServer.login(null);
tnx
but i read on javadoc
"Returns the connection timeout used for contacting the repository"
i don't understand if this param is about api or server.
also this param is in second but the setting timeout in server side is in minute.
i think this parameter is timeout of client platform.
bye V
but i read on javadoc
"Returns the connection timeout used for contacting the repository"
i don't understand if this param is about api or server.
also this param is in second but the setting timeout in server side is in minute.
i think this parameter is timeout of client platform.
bye V