Results 1 to 2 of 2

Thread: Section 38.5.3 of the manual (Addiing objects in a program)

  1. #1
    stephan is offline Registered User
    Name: Stephan Stapel
    Organization: Stephan Stapel
    Project: BristolNG
    Join Date
    Oct 2003
    Location
    Essen, Germany
    Posts
    172

    Section 38.5.3 of the manual (Addiing objects in a program)

    Hi!

    While stepping up to Ice 3.2.0, I discovered that the admin interface is no longer available per default in the IceGrid Registry (unfortunately).

    I was wondering if the section 38.5.3 which describes the programmatic registration of objects in the registry was forgotten or if you left it like it was by means.
    Could you provide a little demo on how to best (easily) register objects now?

    Regards,

    Stephan
    Stephan Stapel
    Software Architect
    Author of 'Verteilte Internet-Anwendungen mit Ice', ix 07/2005
    Author of 'Webbasierte Anwendungen mit IcePHP', ix, 06/2006

  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 Stephen,

    You need to create a session with the IceGrid::Registry interface to get a hold on an IceGrid::Admin object. For example:

    Code:
        IceGrid::RegistryPrx registry = com->stringToProxy("DemoIceGrid/Registry");
        try
        {
            IceGrid::AdminSessionPrx session = registry->createAdminSession("testuser", "testpassword");
            IceGrid::AdminPrx admin = session->getAdmin();
    
            // Use admin proxy to add object.
        }
        catch(const PermissionDeniedException& ex)
        {
            // Handle exception
        }
    The next version of the manual will be fixed to not mention anymore IceGrid/Admin.

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Error in Section 6.15.5 of the User Manual
    By sidney in forum Comments
    Replies: 4
    Last Post: 04-07-2010, 02:38 AM
  2. About the manual
    By gogosap in forum Comments
    Replies: 1
    Last Post: 01-04-2010, 05:22 PM
  3. Error with the HelloWorld program of User Manual
    By sylvain.cool in forum Help Center
    Replies: 3
    Last Post: 03-05-2008, 08:52 AM
  4. Streaming interface section of manual...
    By ctennis in forum Bug Reports
    Replies: 1
    Last Post: 08-23-2007, 07:08 PM
  5. Replies: 1
    Last Post: 04-13-2007, 09:49 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
  •