Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #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
  #2 (permalink)  
Old 11-29-2004
mes's Avatar
mes mes is online now
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Re: how can icepackadmin remotely manage icepackregistry?

Quote:
does that mean i should use icepack::admin::addobject to explicitly add the object
Yes.
Quote:
and it seems fail to remotely to connect the registry for nether icepackadmin nor even server
You didn't provide any information about the failure (such as the exception that's occurring), but if you're using multiple hosts then the reason is probably because your IcePack.Server.Endpoints and IcePack.Admin.Endpoints properties do not contain "-h 192.168.4.93". When the -h option is not specified, the object adapter generally binds to 127.0.0.1, which would prevent clients on other hosts from connecting to ti.
Quote:
should have the client try to connect the registry to query the object@adapter--endpoints mapping but that always failed work why?
How does it fail?

Take care,
- Mark
Reply With Quote
  #3 (permalink)  
Old 11-29-2004
saint.christian saint.christian is offline
Registered User
 
 
Join Date: Nov 2004
Posts: 3
really appreciate your help and the thing is getting clearer for me
so now the problem is simplified and looks like this

i try to run client on one host 192.168.4.100

[root@192.168.4.100 samples]# more clientconfig
Proxy=SimplePrinter@theadapter1
#Proxy=SimplePrinter:default -h 192.168.4.93 -p 11000
IcePack.Registry.Client.Endpoints=default -h 192.168.4.93 -p 12000
IcePack.Registry.Admin.Endpoints=default -h 192.168.4.93 -p 14000
Ice.Default.Locator=IcePack/Locator:default -h 192.168.4.93 -p 12000

----as my server on 192.168.4.93 is with serverconfig which says---

[root@192.168.4.93 samples]# more serverconfig
SimplePrinterAdapter.Endpoints=default -h 192.168.4.93 -p 11000
SimplePrinterAdapter.AdapterId=theadapter1
IcePack.Registry.Server.Endpoints=default -h 192.168.4.93 -p 13000
Ice.Default.Locator=IcePack/Locator:default -h 192.168.4.93 -p 12000

and registry config file is like
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 -h 192.168.4.93 -p 13000
IcePack.Registry.Admin.Endpoints=default -h 192.168.4.93 -p 14000
IcePack.Registry.DynamicRegistration=1

if i startup with the clientconfig it says:
[root@192.168.4.100 samples]# ./client --Ice.Config=clientconfig
SimplePrinter@theadapter1
Reference.cpp:712: Ice::NoEndpointException:
no suitable endpoint available for proxy `SimplePrinter -t @ theadapter1'

as my server is working on port 11000
Proxy=SimplePrinter:default -h 192.168.4.93 -p 11000
works fine ,but if i use the form like SimplePrinter@theadapter1 gives the exception methoned above
if that means the object has not been registered into the registry ,is there any way if i want to refer to the object binded to adapter so that my client can danymically query it without knowing its endpoint. but using the forms like object@adapter(will explicitely object registration be the only solution?)

i wonder it i make the statesment clear and looks forwarding to your help
Reply With Quote
  #4 (permalink)  
Old 11-29-2004
mes's Avatar
mes mes is online now
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
It sounds like you're encountering the "dynamic registration" bug that was reported here. We have posted a patch for Ice 1.5.1, and of course this problem is fixed in Ice 2.0 that we released last week.

Take care,
- Mark
Reply With Quote
  #5 (permalink)  
Old 11-29-2004
saint.christian saint.christian is offline
Registered User
 
 
Join Date: Nov 2004
Posts: 3
yes it's such a huge bug
fornunately the test passed in ice-2.0.0 client but still ice-1.5.1 server
but that doesn't matter
thanks for your help
your hard working will make ice loved by more and more developer
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
icepackadmin extra functionality StuartA Patches 0 09-09-2005 12:19 AM
More subcommands needed in icepackadmin! rc_hz Help Center 0 11-16-2004 12:59 AM
Unable to run icepackadmin -e command vsonnathi Bug Reports 1 11-04-2004 09:20 AM
Ice utils (icepackregistry, icepackadmin, icepacknode...) vsonnathi Help Center 0 10-21-2004 03:49 PM
bug in IcePackRegistry.dsp wodi Bug Reports 1 08-25-2004 10:26 AM


All times are GMT -4. The time now is 01:43 PM.


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.