Results 1 to 2 of 2

Thread: BatchOneway Calls in Ice 3.3.1

  1. #1
    roywill is offline Registered User
    Name: William Raj
    Organization: Photon Infotech
    Project: Digital Content
    Join Date
    Jul 2009
    Posts
    1

    BatchOneway Calls in Ice 3.3.1

    Hi,

    We have a ice server which receives, batch one way request for logging traces. This was working till we replace Ice with 3.3.1 version. Now we get
    connection timeout exceptions.

    Environment: Linux

    Is there any specific changes done for batchoneway calls in ice 3.3.1 version?

    Regards
    William

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi William,

    This is unfortunately a bug we discovered few days ago. The Ice runtime in 3.3.x is more strict when it comes to batch one-way invocations. If the proxy is associated with a connection which has been closed, the batch one-way request will throw to ensure that the user application is correctly notified of the connection failure (previous batch one-way invocations might have been lost as a result of the connection failure).

    Of course, this shouldn't occur for ConnectionCloseTimeout since this indicates that the connection has been closed by ACM and ACM only closes connections with no pending batch one-way requests.

    To work around this issue for now you can just catch this exception and retry, for example:

    Code:
           try
           {
                try
                {
                     proxy.trace(message);
                }
                catch(Ice.ConnectionTimeoutException ex)
                {
                    proxy.trace(message); // Retry
                }
           }
           catch(Ice.LocalException ex)
           {
                // The batch request failed, this can happen if the connection failed.  You
                // should handle the failure appropriately here.
           }
    You could also disable client side ACM with Ice.ACM.Client=0 if your application opens only a fixed set of connections (connections will only be closed on communicator destruction if you disable client side ACM). This will be fixed in the next release.

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. question on batchoneway calls in ICE
    By Vijayalaxmi in forum Help Center
    Replies: 4
    Last Post: 01-11-2011, 08:18 PM
  2. Replies: 2
    Last Post: 03-25-2010, 07:30 AM
  3. Ice.Context and AMI calls
    By aozarov in forum Help Center
    Replies: 1
    Last Post: 11-21-2008, 05:04 PM
  4. Muticast calls
    By bogyom in forum Help Center
    Replies: 2
    Last Post: 10-12-2006, 06:38 PM
  5. Delay of OneWay-Calls
    By wgwolf in forum Help Center
    Replies: 1
    Last Post: 11-10-2005, 08:24 PM

Posting Permissions

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