Author Topic: Unable to Connect to LoadBalancer using WebAPIs 8.X  (Read 2731 times)

Offline upk_singhm

  • Jr. Member
  • **
  • Posts: 88
  • Karma: 0
Unable to Connect to LoadBalancer using WebAPIs 8.X
« on: January 22, 2016, 08:21:04 AM »
Hi All,
Greetings.
We just started to build a client side webpage to showcase to a prospect how the chat works over the web. We are using the samples provided for alongside demo image provided by Genesys (I know there's a webpage that comes pre-built using which the same can be showcased, but we have to do some changes to that and show some more stuff on the webpage due to which we need to build a new one from scratch). Now Here's what we are doing:

      [b][u] Asp Page that is being used to create the connection to the loadbalancer: [/u][/b]
        string strconfigServerHost = ConfigurationManager.AppSettings["configServerHost"];
        int intconfigServerPort = Convert.ToInt32(ConfigurationManager.AppSettings["configServerPort"]);
        string strbackupConfigServerHost = ConfigurationManager.AppSettings["backupConfigServerHost"];
        int intbackupConfigServerPort = Convert.ToInt32(ConfigurationManager.AppSettings["backupConfigServerPort"]);
        string strconfigServerAppName = ConfigurationManager.AppSettings["configServerAppName"];
       
        LoadBalancer.Init(strconfigServerHost, intconfigServerPort, strbackupConfigServerHost, intbackupConfigServerPort, strconfigServerAppName);

    [b][u]web.config File Contents---[/u][/b]
    <add key="configServerHost" value="demosrv.genesyslab.com"/>
    <add key="configServerPort" value="2020"/>
    <add key="backupConfigServerHost" value="demosrv.genesyslab.com"/>
    <add key="backupConfigServerPort" value="2020"/>
    <add key="configServerAppName" value="<Name of WebServerSample App that comes pre-built with demo image>"/>

Now When we are doing the LoadBalancer.Init and supplying the credentials as picked from web.config file. But the LoadBalancer doesn't get initialized.

My Queries:
[list type=decimal]
[li]What are we doing wrong in this?[/li]
[li]Do we have to first initialize the Config Server connection first and then the LoadBalancer?[/li]
[/list]

Appreciate an earnest response.

Thanks,
Upkar S

Offline upk_singhm

  • Jr. Member
  • **
  • Posts: 88
  • Karma: 0
Re: Unable to Connect to LoadBalancer using WebAPIs 8.X
« Reply #1 on: January 22, 2016, 12:44:10 PM »
And just to let you know I'm using a .NET based web app to connect to it. I'm not sure if that's relevant or not this time but thought of sharing this info.

By the way out of the box Genesys demo image I believe comes with Java APIs, Am I correct?

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Unable to Connect to LoadBalancer using WebAPIs 8.X
« Reply #2 on: January 22, 2016, 12:56:41 PM »
Genesys provides demo for both platform:
[list]
[li]Java[/li]
[li].Net[/li]
[/list]

I am working with demo webapp within my LAB environment and it works as expected.

Offline upk_singhm

  • Jr. Member
  • **
  • Posts: 88
  • Karma: 0
Re: Unable to Connect to LoadBalancer using WebAPIs 8.X
« Reply #3 on: January 22, 2016, 03:11:43 PM »
Kubig,
Can you share the path of the .NET testtools and WebSampleApp?

Also the app name of your WebAPIServer, my image has 3 different Web API Server apps. Only the one with the name WebAppServerBS runs and the rest don't even start, I wonder if they should start as a server app or not?

Appreciate your help.

Thanks,
Upkar S