Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

I'm still connected.

2 posts in Networking Last posting was on 2010-03-31 14:27:49.0Z
Kim Jensen Posted on 2010-03-30 22:08:11.0Z
Reply-To: "Kim Jensen" <kim@comcasystems.com>
From: "Kim Jensen" <kim@comcasystems.com>
Newsgroups: Advantage.Networking
Subject: I'm still connected.
Date: Tue, 30 Mar 2010 18:08:11 -0400
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 173.65.158.36
Message-ID: <4bb275ca@solutions.advantagedatabase.com>
X-Trace: 30 Mar 2010 16:06:02 -0700, 173.65.158.36
Path: solutions.advantagedatabase.com!173.65.158.36
Xref: solutions.advantagedatabase.com Advantage.Networking:920
Article PK: 1132330

On last summit in DC I was told how to check if the application had lost the
connection to the server, so I can connect again, but I can't rember how.

I have an application running as a service that connect to the server over
the internet. I the server get rebooted or internet goes down, the service
has to be restarted.

Thanks,
Kim


Edgar Sherman Posted on 2010-03-31 14:27:49.0Z
Date: Wed, 31 Mar 2010 08:27:49 -0600
From: Edgar Sherman <no@email.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
MIME-Version: 1.0
Newsgroups: Advantage.Networking
Subject: Re: I'm still connected.
References: <4bb275ca@solutions.advantagedatabase.com>
In-Reply-To: <4bb275ca@solutions.advantagedatabase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 10.24.34.164
Message-ID: <4bb35b5b@solutions.advantagedatabase.com>
X-Trace: 31 Mar 2010 08:25:31 -0700, 10.24.34.164
Lines: 37
Path: solutions.advantagedatabase.com!10.24.34.164
Xref: solutions.advantagedatabase.com Advantage.Networking:921
Article PK: 1132333

Probably the most important part is to add RETRY_ADS_CONNECTS = 1 to
your ads.ini file under the [SETTINGS] section.

-------------------
By default, the Advantage Client Engine caches certain errors that are
generated during attempts to connect to the Advantage Database Server.
This allows future connection attempts to avoid some of the timeout
periods associated with the Advantage Database Server discovery process.
For example, if a connection to the Advantage Database Server fails, all
future connection attempts to that server from a particular client will
immediately return the same error code.
....
By setting the value to 1, every "ADS_REMOTE" connection attempt to a
server will look for the Advantage Database Server regardless of the
success of past connection attempts. If you want your application to
check for the Advantage Database Server each time it attempts an
"ADS_REMOTE" connection, you need to create an ads.ini file with the
following entry:

--------------------

Beyond that it should just be a matter of catching any network errors
and retrying to connect.
Edgar

On 3/30/2010 4:08 PM, Kim Jensen wrote:
> On last summit in DC I was told how to check if the application had lost the
> connection to the server, so I can connect again, but I can't rember how.
>
> I have an application running as a service that connect to the server over
> the internet. I the server get rebooted or internet goes down, the service
> has to be restarted.
>
> Thanks,
> Kim
>
>