Chris Hayes
2007-06-09 15:18:38 UTC
I've also posted this in the microsoft.public.biztalk.server MSDN Managed
Newsgroup area.
We are using Host Integration Server 2006 with our BizTalk Server 2006 to do
some screen scraping of an old mainframe application (I know less than ideal
to say the least). But we are encountering a number of errors that read:
"The 3270 session is busy. The Receive () method should be called to
determine when input is allowed and this method can be retried."
Now we know where the offending code is, we just can't figure out why we get
errors intermittently at this point. We are using a SessionDisplay object to
SendKey an Enter key stroke to move to the next screen in the mainframe app.
The line immediately prior to the Enter SendKey command is "[SessionDisplay
object].WaitForSession(SessionDisplayWaitType.NotBusy, 60000);". We would
have thought that WaitForSession(SessionDisplayWaitType.NotBusy, x) would
wait for the session to NOT be busy before trying to send another key. Our
time interval is set to 60 seconds but the WaitForSession seems to ignore
this.
Is the WaitForSession method not working properly and waiting as it is
instructed?
Does anyone have any suggestions for a workaround?
Thanks,
Chris
Newsgroup area.
We are using Host Integration Server 2006 with our BizTalk Server 2006 to do
some screen scraping of an old mainframe application (I know less than ideal
to say the least). But we are encountering a number of errors that read:
"The 3270 session is busy. The Receive () method should be called to
determine when input is allowed and this method can be retried."
Now we know where the offending code is, we just can't figure out why we get
errors intermittently at this point. We are using a SessionDisplay object to
SendKey an Enter key stroke to move to the next screen in the mainframe app.
The line immediately prior to the Enter SendKey command is "[SessionDisplay
object].WaitForSession(SessionDisplayWaitType.NotBusy, 60000);". We would
have thought that WaitForSession(SessionDisplayWaitType.NotBusy, x) would
wait for the session to NOT be busy before trying to send another key. Our
time interval is set to 60 seconds but the WaitForSession seems to ignore
this.
Is the WaitForSession method not working properly and waiting as it is
instructed?
Does anyone have any suggestions for a workaround?
Thanks,
Chris