Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...On your site I feel quite confident that the contacts and feedback will make my life a little less hectic..."

Geography

Where in the world do Tek-Tips members come from?
Atreta (Programmer)
8 Jan 11 10:26
Hi,
I posted this on another forum, but i think it was the wrong place and i can't find a way to delete it. I'm writing an application with MyExtra 6.5 and in my company we have 3 different hosts with redundancy and i need a way to check if the first host is down and if it is, the app should connect to the second one and so on. I mean if we can change de host info inside the emulator and make it reconnect, but from inside a code. Is there a way i can do it? any help will be greatly appreciated.
SkipVought (Programmer)
8 Jan 11 18:15



Hi,

What code have you tried and where are you having problems?

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

Atreta (Programmer)
9 Jan 11 1:04
Skip,
thanks for your reply.
My application for now only does simple copy and paste information inside the terminal.
no problem so far, i just need the information if it's possible to set host priority inside a vba code. I can post my code here, but almost everything is in portuguese,except the VB or VBA code.We have 3 different edp files with 3 different hosts. What i need is a way to check if the host is unresponsive and if it is the app should try the second host and so on, instead of we having to close one and open the other one.  can you point me to a function or any direction i can read about it?
sorry for the long post.
thanks a lot
SkipVought (Programmer)
9 Jan 11 13:45


Check out Extra Help on Session.

I found this...

Quote:


Choose the Sessions Pages button to access information on all active LU 6.2 sessions. The information is divided between two pages: the Session page and the Session Statistics page.
The Sessions page lists all the active LU 6.2 sessions.
The Session Statistics page displays the statistics for the session selected on the Sessions page.

Copyright 1996 - 1999, Attachmate Corporation. All rights reserved.

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

Atreta (Programmer)
10 Jan 11 20:01
Skip,
thanks again.
but your answer, if i'm not mistaken, points how to change inside the emulator. if i'm wrong you can tell so :).
i'll post some of my code on pastebin and place the link here
basically it captures data from terminal screen and places inside the excel sheet and vice versa, so we can make things more intuitively. here is the code, like i said pretty much is in portuguese:
http://pastebin.com/rDYdzHJj

I need a way to do something like this, i'm gonna improvise so you can understand:
if(isHostUp(192.169.1.1))
{
  do something
}
else (isHostUp(192.168.1.2))
{
  do something
}
what i'm trying to find is a way to verify if the host is up, if it is it will use this host to execute the code, else it will use the second host. It would be nice if it's possible to close the connection with the first unresponsive and open a new one with the second, third and so on if needed, always having just 1 session and 1 connection at a time.
really appreciate all your help and patience.
thank you.
SkipVought (Programmer)
10 Jan 11 21:08



Well could you not cycle in a loop, to open a sesson on any MF in your list and check the results of the connection?

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

Atreta (Programmer)
11 Jan 11 19:34
Skip,
we decide to use some sort of loop, opening the executable file and then verify if the session connection is ok and execute it, if not we'll close the application and open another one.
when we finish the code i can post here for everyone to see.
thanks a lot for your help and patience.


Atreta

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close