Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 05-05-2004
stephan stephan is offline
Registered User
 
Name: Stephan Stapel
Organization: Stephan Stapel
Project: BristolNG
 
Join Date: Oct 2003
Location: Essen, Germany
Posts: 169
IcePack question

Hi there,

the documentation mentions a way to use IcePack that doesn't include server activation/ IcePack nodes but only the IcePackRegistry.

However, can you please give an example on how to create/ run servers and clients using the registry and without the nodes?

regs,

Stephan
Reply With Quote
  #2 (permalink)  
Old 05-06-2004
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Hi Stephan,

You would start the IcePack registry server (icepackregistry) and define at least the following properties:
  • IcePack.Registry.Client.Endpoints
  • IcePack.Registry.Server.Endpoints
Your clients need to define the property Ice.Default.Locator to have the proxy for the IcePack registry's locator object. Therefore if the registry's client endpoints are defined as follows:

IcePack.Registry.Client.Endpoints=tcp -p 12000

Then the locator proxy can be constructed like this:

Ice.Default.Locator=IcePack/Locator:tcp -p 12000

Notice that this proxy contains the registry's client endpoint(s).

Now, if you want to use object adapter ids in your indirect proxies (e.g., MyObject @ MyAdapter), you will also need to define Ice.Default.Locator in your server(s), and define the AdapterId property for each object adapter.

For example, if you have an object adapter named MyAdapter, then your server configuration would contain the following:

Ice.Default.Locator=IcePack/Locator:tcp -p 12000
MyAdapter.AdapterId=MyAdapter
MyAdapter.Endpoints=tcp


If you want to use proxies with well-known objects, then you must either register the objects manually using icepackadmin, or do it programmatically from your servers using the IcePack::Admin::addObject operation.

Let me know if you have any other questions.

Take care,
- Mark
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
IcePack question fhm21cn Help Center 3 06-06-2005 06:02 AM
an old question about icepack emoly Help Center 6 04-01-2005 05:34 AM
IcePack question wodi Help Center 3 08-14-2004 06:03 AM
IcePack Question silva Help Center 1 04-07-2004 10:18 AM
IcePack Question xdm Help Center 5 02-04-2004 07:14 PM


All times are GMT -4. The time now is 10:50 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.