Results 1 to 2 of 2

Thread: Ice.Context and AMI calls

  1. #1
    aozarov is offline Registered User
    Name: Arie Ozarov
    Organization: hi5 Networks
    Project: SOA
    Join Date
    Mar 2008
    Posts
    39

    Ice.Context and AMI calls

    Hi,

    Can you confirm that Ice.Context is copied using the caller thread
    when passed per method call even for AMI calls?
    It does look so from the code but want to make sure this is a documented
    behavior which I can count on (so I don't need to clone it myself).

    Thanks,
    Arie.

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Yes, that it correct. Whether call is made immediately or made later in the background, the context information is copied into the marshaled representation.

    You need to be careful though if you modify a context that is passed to several AMI invocations: if you write to the context while the client-side run time is marshaling its contents, things are likely to go wrong. So, you will need to interlock somehow such that the context is modified only at times where no invocation is in progress.

    Cheers,

    Michi.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 07-16-2009, 01:23 PM
  2. Replies: 2
    Last Post: 04-20-2009, 10:06 PM
  3. AMI calls and congestion
    By masti in forum Help Center
    Replies: 1
    Last Post: 03-16-2008, 09:26 PM
  4. On TimeoutExceptions with AMI calls
    By stephan in forum Help Center
    Replies: 3
    Last Post: 10-28-2006, 03:57 AM
  5. Timeouts on AMI calls?
    By mathewm in forum Help Center
    Replies: 5
    Last Post: 09-11-2003, 10:58 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
  •