title: Screen scraping with Java and X3270
body: <p>I have been trying to use Java to connect to X3270 (actually, wc3270, since I'm working on a windows environment) and control it to access a mainframe, login, navigate a few screens and get the data returned from x3270's command "ascii" for further processing (like separating the needed fields).</p>
  
  <p>Even if I can connect to x3270 and login into the server, I'm having trouble to reliably retrieve the screens from x3270 after sending a command, even using threads to read the socket continuously.</p>
  
  <p>Can anyone tell me what I should be doing to get things right?</p>