View Single Post
  #1 (permalink)  
Old 11-29-2004
saint.christian saint.christian is offline
Registered User
 
 
Join Date: Nov 2004
Posts: 3
how can icepackadmin remotely manage icepackregistry?

ice newbie needs your help for 1.5.1 ice version

1.icepackregistry started with config
---------------------------------------------------------------------------------------
IcePack.Registry.Data=/opt/Ice-1.5.1/slice/db
IcePack.Registry.Client.Endpoints=default -h 192.168.4.93 -p 12000
IcePack.Registry.Server.Endpoints=default
IcePack.Registry.Admin.Endpoints=default
IcePack.Registry.DynamicRegistration=1
----------------------------------------------------------------------------------------
so the registry listen on port 12000

2.i manully started the server (the same host where registry locates) which
createObjectAdapter("SimplePrinterAdapter")
and adapter->add(object, Ice::stringToIdentity("SimplePrinter"));
adapter->activate();

with the config
SimplePrinterAdapter.Endpoints=default -h 192.168.4.93 -p 11000
SimplePrinterAdapter.AdapterId=theadapter1
Ice.Default.Locator=IcePack/Locator:default -h 192.168.4.93 -p 12000
IcePack.Registry.Client.Endpoints=default -h 192.168.4.93 -p 12000
IcePack.Registry.Server.Endpoints=default -h 192.168.4.93
IcePack.Registry.Internal.Endpoints=default
IcePack.Registry.Admin.Endpoints=default
IcePack.Registry.Data=/opt/Ice-1.5.1/slice/db

3.in icepackadmin interacitve commandline
i find the adapter1 i had just created
but when i try to find object with the identifier SimplePrinter

>>> object find SimplePrinter
error: IcePack::ObjectNotExistException
is given

????????????does that mean i should use icepack::admin::addobject to explicitly add the object or i did something wrong
????????????and it seems fail to remotely to connect the registry for nether icepackadmin nor even server

4.my client could connect to server successfully if config is:
Proxy=SimplePrinter:default -h 192.168.4.93 -p 11000

????????????but if i add
Ice.Default.Locator=IcePack/Locator:default -h 192.168.4.93 -p 12000
and change the proxy entry to
Proxy=SimplePrinter@theadapter1
should have the client try to connect the registry to query the object@adapter--endpoints mapping but that always failed work why?
Reply With Quote