Results 1 to 5 of 5

Thread: QS aboout AMI

  1. #1
    sober is offline Registered User
    Name: sober ding
    Organization: bupt
    Project: net security mangement
    Join Date
    Mar 2008
    Posts
    34

    QS aboout AMI

    Hi,there

    Should I implement op_async() in Server Side when I just using AMI, and how can I get MydefinationException's detail , I mean the reason , I test just to find it print MydefinationException not the reason. Is this because ice_exception(const ::IceException& e)?

    thank you !

    sober

  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,

    AMI is a client side API only, you don't have anything to change on the server if your client is using AMI. You need to cast or re-throw the exception to access its attributes, for example:

    Code:
         void
         ice_exception(const Ice::Exception& ex)
         {
             try
             {
                  ex.ice_throw();
             }
             catch(const MydefinationException& e)
             {
                  cerr << e.reason << endl;
             }
         }
    Cheers,
    Benoit.

  3. #3
    sober is offline Registered User
    Name: sober ding
    Organization: bupt
    Project: net security mangement
    Join Date
    Mar 2008
    Posts
    34

    3x

    Hi,

    Thanks for your reply , I see.

    And one more question, if I use AMI to send file block by block ,can these blocks reached sequently ?

    How can I do to achieve this , use Ice.ThreadPool.Server.Serialize=1 ?

    thank you .


    sober

  4. #4
    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,

    Yes, you can use Ice.ThreadPool.Server.Serialize=1 to ensure that AMI calls received over the connection are dispatched sequentially. Note that this is only necessary if you configure multiple threads for your server thread pool.

    Cheers,
    Benoit.

  5. #5
    sober is offline Registered User
    Name: sober ding
    Organization: bupt
    Project: net security mangement
    Join Date
    Mar 2008
    Posts
    34

    3x

    thank you very much.

    cheers,
    Sober

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. AMI or not AMI depending on slice args?
    By stepancheg in forum Help Center
    Replies: 2
    Last Post: 02-26-2008, 03:00 PM
  2. AMI Error
    By billwillman in forum Comments
    Replies: 4
    Last Post: 09-28-2006, 09:15 PM
  3. hard to use AMI,help me,please
    By nyingchi in forum Help Center
    Replies: 5
    Last Post: 09-18-2006, 07:02 AM
  4. Help : AMI
    By mykael in forum Help Center
    Replies: 7
    Last Post: 06-22-2006, 12:23 PM
  5. Question about AMI
    By OrNot in forum Help Center
    Replies: 3
    Last Post: 12-24-2005, 03:12 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
  •