×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!
  • Students Click Here

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

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Host Priority

Host Priority

Host Priority

(OP)
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.

RE: Host Priority




Hi,

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

Skip,

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

RE: Host Priority

(OP)
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

RE: Host Priority



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

RE: Host Priority

(OP)
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.

RE: Host Priority




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

RE: Host Priority

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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