|
|
|
||||||
|
Re: Confused with IcePack
Quote:
Code:
IcePack.Registry.Client.Endpoints=default -p 11000 IcePack.Registry.Server.Endpoints=default IcePack.Registry.Admin.Endpoints=default IcePack.Registry.Data=<path to the directory of the IcePack registry database directory> IcePack.Registry.DynamicRegistration=1 bash$ mkdir db bash$ icepackregistry --Ice.Config=config_icepack Quote:
Code:
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("jclCommandAdapter");
Ice::ObjectPtr object = new jSocketsI;
adapter->add(object, Ice::stringToIdentity("jclCommand"));
adapter->activate();
Code:
jclCommandAdapter.Endpoints=default -z jclCommandAdapter.AdapterId=jsocket01 Ice.Default.Locator=IcePack/Locator:default -h <registry host name> -p 11000 Quote:
Code:
// Create a proxy for the root directory
std::string proxy = ic->getProperties()->getProperty("Proxy");
Ice::ObjectPrx base = ic->stringToProxy(proxy);
Code:
Proxy=jclCommand@jsocket01 Ice.Default.Locator=IcePack/Locator:default -h <registry host name> -p 11000 Quote:
. This demo demonstrates the use of the IcePack registry, node and deployment mechanism which is a little more complicated than just using the registry with manually launched servers.The Ice/hello demo actually contains some configuration to use the hello world demo in a similar scenario (i.e.: indirect binding, manually launched server). Here's some instructions on how to use it (I assume your current directory is Ice-1.1.0/demo/Ice/hello):
Let me know if these instructions are not clear enough! Benoit. |
|
||||||
|
Hello Benoit,
I really appreciate your help. Things really get clearer after you get some sleep. ![]() I was actually converting my codes as to your suggestion ... unfortunately, I found-out that I dont have the IcePack binaries. I'm using windows and .NET and when I looked at the Visual Studio Solution file that came with version 1.1.0 ... its not defined. Thanks again for the help. Alex |
|
|||||
|
I am coufused by the property"IcePack.Registry.Server.Endpoints".
The doc said: Defines the endpoints of the IcePack server interface. The server endpoints must be accessible to Ice servers that are using IcePack to register their object adapter endpoints. So I think that these endpoints are used by ice servers to communicate to register their adapters or objects. According to this idea, I try the fellowing configurations, ------- config--icepackregistry---------- IcePack.Registry.Client.Endpoints=default -p 10006 IcePack.Registry.Server.Endpoints=default -p 10000 IcePack.Registry.Internal.Endpoints=default IcePack.Registry.Admin.Endpoints=default IcePack.Registry.Data=db IcePack.Registry.DynamicRegistration=1 -------- config-client--------------- Hello.Proxy=hello@HelloAdapter Ice.Default.Locator=IcePack/Locator:default -p 10006 ---------config-server------ Hello.Endpoints=tcp:udp:ssl Hello.AdapterId=HelloAdapter Ice.Default.Locator=IcePack/Locator:default -p 10000 But When I run the server.exe, I got errors: .\Outgoing.cpp:359: Ice::ObjectNotExistException: object does not exist identity: IcePack/Locator facet: operation: getRegistry It seems that I misunderstood something about the property. Can anyone help me? |
|
||||||
|
The servers configuration file is incorrect. The locator proxy is always set to the client endpoint. The fact that you are configuring a "server" is irrelevant. The "IcePack.Registry.Server.Endpoints" is using for internal communications, and does not need to have a fixed port endpoint -- that is just "default" will work fine.
Regards, Matthew |
|
|||||
|
Thanks a lot.
But , I still feel confused by this property. Could you give me some examples in that we have to set the "IcePack.Registry.Server.Endpoints" instead of the default value? And , How to understand the "Client" and "Server" concepts in this circumstance of icpackregistry? Sorry,I can not deeply understand the property discribed by the doc due to my English. Best regards. |
|
||||||
|
An IcePack "client" is an application that uses IcePack the IcePack query interface. This can happen explicitely (namely a direct application call on the IcePack::Query interface), or by the runtime through indirect binding.
An IcePack "server' is an application that is managed by IcePack. That is a server that is described in a deployment descriptor, and then subsequently started either on-demand by an icepacknode, or started by hand if the process is a manual service. The only circumstance that I can think you'd want to directly set the port on the endpoints other than client (which must run on a fixed port) is if you have some firewall rules within your internal network. Regards, Matthew |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| confused with IceXML | Yunqiao Yin | Help Center | 2 | 08-28-2006 11:21 PM |
| :confused: How to use Ice with other platform on windows, such as Dev-C++, C++Builder | rocshaw | Help Center | 3 | 11-24-2005 02:48 AM |
| Confused with IcePack demos | Yunqiao Yin | Help Center | 1 | 09-04-2005 07:58 PM |
| IcePack::AdapterNotExistException or IcePack::ServerNotExistException | ghost158 | Help Center | 1 | 04-19-2005 03:47 AM |
| Puzzled by IcePack/Locator and IcePack/Query | rc_hz | Help Center | 2 | 11-13-2004 09:41 PM |