Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 06-09-2007
stephan stephan is offline
Registered User
 
Name: Stephan Stapel
Organization: Stephan Stapel
Project: BristolNG
 
Join Date: Oct 2003
Location: Essen, Germany
Posts: 169
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
Reply With Quote
  #2 (permalink)  
Old 06-09-2007
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,534
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Well known objects and Server objects unique naming issue? kishore Help Center 1 04-13-2007 10:49 PM
One question about Ice 3.1.1 Manual rc_hz Help Center 4 10-26-2006 11:21 AM
Slice2DocBook Manual mrcham Help Center 5 09-20-2006 06:06 PM
Ice 2.1.0 manual andhow Bug Reports 1 05-09-2005 04:55 AM
What's new in Ice-1.3.0 manual? shantanu_k06 Comments 1 03-07-2004 05:18 PM


All times are GMT -4. The time now is 11:41 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.