Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to connect to RTC server through proxy using rtc client api

Hi All,

Thank you in advance.

I have requirement where I have to fetch all the streams for specific project area. I have written code accomplish same(copied from jazz site). However I am getting issue while connecting to RTC server through proxy. we have proxy server configured here in my environment. The code which I have used is,

String repoUri = "serverRUL";// Server is configured out site my network
TeamRepository repository = (TeamRepository) TeamPlatform.getTeamRepositoryService().getTeamRepository(repoUri);
//repository.setProxy("proxy", port_no,null, null);-- used this line to set proxy details
repository.registerLoginHandler(new ILoginHandler2()
{
public ILoginInfo2 challenge(ITeamRepository repo)
{
return new UsernameAndPasswordLoginInfo("user", "password");
}
});
repository.login(null);


This gives timeout exception, so the question is how to set proxy details through api to connect to RTC server.

0 votes



One answer

Permanent link
Hi Nilesh,

You should try using the Java property as specified in this document https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html

  • http.proxyHost : the host name of the proxy server
  • http.proxyPort : the port number, the default value being 80.
  • http.nonProxyHosts :a list of hosts that should be reached directly, bypassing the proxy. This is a list of patterns separated by '|'. The patterns may start or end with a '*' for wildcards. Any host matching one of these patterns will be reached through a direct connection instead of through a proxy.

Best regards,

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,944

Question asked: Mar 08 '16, 3:07 a.m.

Question was seen: 9,543 times

Last updated: Mar 14 '16, 1:04 p.m.

Confirmation Cancel Confirm