Results 1 to 2 of 2

Thread: How to enable no-blocking call?

  1. #1
    Jiangyubao is offline Registered User
    Name: Yubao Jiang
    Organization: www.gliet.edu.cn
    Project: integrate OSGi & Ice to provice service for PHP
    Join Date
    Oct 2007
    Location
    Beijing China
    Posts
    62

    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.

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 03-25-2010, 07:30 AM
  2. How to know it is async call or sync call?
    By alexnycheung in forum Help Center
    Replies: 1
    Last Post: 04-03-2009, 04:14 PM
  3. Blocking functions and multi threading
    By nickadamson in forum Help Center
    Replies: 1
    Last Post: 02-04-2008, 10:52 AM
  4. Ice Registry blocking on restart
    By Steffen in forum Help Center
    Replies: 14
    Last Post: 03-31-2006, 09:17 AM
  5. about ice_oneway call
    By level in forum Bug Reports
    Replies: 1
    Last Post: 01-27-2005, 11:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •