Archived

This forum has been archived. Please start a new discussion on GitHub.

How to enable no-blocking call?

Hi, I use Java GUI problem to communicate Glacier2Router to invoke remote servant object's method. Now I need to schedule a job to upload a file, and put this job background since it will take a long time finish. And at the same time I want to send a request to remote server, but this request is blocked until the first request finished.

I know that Java NIO technology can avoid this problem. So is there a secret switch at configure file to enable no-blocking mode, and how to?

Thanks a lot.

Comments

  • matthew
    matthew NL, Canada
    You can use AMI to avoid blocking invocations on the client. On the server if you want to avoid blocking the server side dispatch thread if you need to wait for some lengthy operation to complete you can use AMD. We've written about this in numerous Connections article (http://www.zeroc.com/newsletter/index.html), and in the Ice manual.