Home Help Center

How to enable no-blocking call?

JiangyubaoJiangyubao Member Yubao JiangOrganization: www.gliet.edu.cnProject: integrate OSGi & Ice to provice service for PHP ✭✭
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.


  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    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.
Sign In or Register to comment.