" /> GIS disconnect problem - Genesys CTI User Forum

Author Topic: GIS disconnect problem  (Read 3513 times)

GIS man

  • Guest
GIS disconnect problem
« on: January 01, 1970, 12:00:00 AM »
Advertisement
I am having difficulties with keeping connection alive between GIS and GIS client. I am using GIS 7.1.xxxx and also using a session timer that automatically re egisters every 45 seconds. Yet, there still seems to be a problem from time to time when I try to update something using GIS. The problem usually happens if I idle for a few minutes before issuing a command.

my sessionTimeout is set to 3600 so it should give me plenty of time.
Does anyone have any ideas as to why this would happen?

Eisa

  • Guest
GIS disconnect problem
« Reply #1 on: January 01, 1970, 12:00:00 AM »
Hi,
i had the same problem and I've overcame it by using a timer send a trivial request to the server CfgPerson [DBID = 1] which will never return any thing and at the same time keeps my connection open all the time

Marked as best answer by on Today at 05:16:03 PM

Vic

  • Guest
GIS disconnect problem
« Reply #2 on: January 01, 1970, 12:00:00 AM »
  • Undo Best Answer
  • I have also tried timer, but it did not cut it for me I used to have a similar problem so what I did was:

    1. recreate connection to GIS every time user submits something
    2. try to recreate connection after catching an exception try{}catch{}finally{}


    I hope it helped!

    Vic

    GIS Newbie

    • Guest
    Re: GIS disconnect problem
    « Reply #3 on: July 18, 2006, 02:50:13 PM »
    Guys,
          I'm new to gis and am devloping an app to talk to GIS. The problem is that I error out every time I try and recive notiifcation of the stat. It's more than likely my code. But I'll post for you to review and even send me some sample code


    Dim class1 As New GISStatisticClass
            stat_value = "Error"
            class1.SubscribeToStatistic(theHost, Session, StatServer, Tenant, objecttype, objectname, statistic)
            Dim subscriptions1 As New StatServiceService.statisticSubscriptions
            Dim subscription1 As New StatServiceService.statisticSubscription
            subscription1.scope = "all"
            subscription1.statisticId = "statref1"

            Dim subscriptionArray1(1) As StatServiceService.statisticSubscription
            ' ReDim subscriptionArray1(1)
            subscriptionArray1(0) = subscription1 '.scope = "all" ' .SetValue(subscription1, 0)
            ' subscriptionArray1(0).statisticId = "statref1"

            subscriptions1.statisticSubscription = subscriptionArray1

            Dim notification1 As New StatServiceService.notification
            notification1.mode = StatServiceService.notificationMode.Polling
            notification1.timeout = "15"

            Dim response1 As StatServiceService.retrieveSubscribedStatisticsResponse
            response1 = class1.port_stat.retrieveSubscribedStatistics(subscriptions1, notification1)

           
            Dim value1 As StatServiceService.statisticValue
            value1 = response1.statisticValues.GetValue(0)
            lstat_value = CType(value1.eventValues.GetValue(0), StatServiceService.eventValue).LValue
            stat_value = Convert.ToString(lstat_value)
            Console.WriteLine(("Retrieved statistic value = " & stat_value))
            class1.unsubscribe()
        End Sub