Results 1 to 5 of 5

Thread: I want to run IcePack on different hosts

  1. #1
    jinyi.smilodon is offline Registered User
    Join Date
    Nov 2004
    Location
    Beijing China
    Posts
    6

    Unhappy I want to run IcePack on different hosts

    I want to run the demo (demo/IcePack/hello) on different hosts

    I have two hosts:192.168.5.64 and 192.168.4.93
    192.168.5.64: rh9 and ICE1.5.1 installed
    192.168.4.93: rh9 and ICE NOT INSTALLED

    I want to run the client from 192.168.4.93 to call the server registered on 192.168.5.64. Can I?

    How should I do?

    Should I run ICEPack service on both hosts?
    and how to change the config files?

    I have read the manual of ICE carefully , but I can't understand the indirect binding and ICEpack very well, there are few content about indirect binding.

    Is there any simple demos for explaining the indirect binding?

    Thanks

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Yes, you can run the client on one machine and the server on a different machine.

    You need to run an IcePack node on the same machine as the server, that is, on 192.168.5.64. When you say that "Ice is not installed" on the client machine, I take it that you mean that the Ice services are not installed, but that the Ice run-time libraries are. (You must install the Ice run-time libraries on the client side or, alternatively, link the client statically if you don't want to use dynamic libraries on the client side.)

    When the client runs, it needs to know the location of the IcePack node. It does that by looking up the property IcePack.Registry.Client.Endpoints. So, you need to run the client with this property set to "default -h 192.168.5.64 -p 12000" (assuming that your IcePack node is using port 12000, as it does for the demo).

    Check out demo/IcePack/simple demo -- that illustrates simple indirect binding.

    Cheers,

    Michi.

  3. #3
    jinyi.smilodon is offline Registered User
    Join Date
    Nov 2004
    Location
    Beijing China
    Posts
    6
    THANK YOU!! I HAVE GOT!

    I change the config file on the client side, not the IcePack.Registry.Client.Endpoints but Ice.Default.Locator

    changed config:

    #
    # The IcePack locator proxy.
    #
    Ice.Default.Locator=IcePack/Locator:default -h 192.168.5.64 -p 12000
    # ~~~~~~~~~~ I changed it here

    #
    # IcePack registry configuration.
    #
    IcePack.Registry.Client.Endpoints=default -p 12000
    IcePack.Registry.Server.Endpoints=default
    IcePack.Registry.Internal.Endpoints=default
    IcePack.Registry.Admin.Endpoints=default
    IcePack.Registry.Data=db/registry
    IcePack.Registry.Trace.ServerRegistry=2
    IcePack.Registry.Trace.AdapterRegistry=2

    #
    # IcePack node configuration.
    #
    IcePack.Node.Name=node
    IcePack.Node.Endpoints=default
    IcePack.Node.Data=db/node
    IcePack.Node.CollocateRegistry=1

    #
    # Trace properties.
    #
    IcePack.Node.Trace.Activator=3
    IcePack.Node.Trace.Adapter=2
    IcePack.Node.Trace.Server=3

    THANK YOU AGAIN!!

  4. #4
    fengxb's Avatar
    fengxb is offline Registered User
    Name: feng xuebin
    Organization: jiexin tech
    Project: scientific calculation
    Join Date
    Aug 2003
    Location
    R.P.China
    Posts
    80
    Hi Michi,

    I have another question about IcePack. I want to implement loading balance by IcePack. For example, there are two servers reside on different hosts. I hope the client could connect to one of them dynamicly. How should I do?

    Regards,
    Fengxb

  5. #5
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Currently, IcePack cannot do this. We are considering adding such a feature in the near future.

    Cheers,

    Michi.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. running the IcePy Demo from diff hosts
    By eritrea in forum Help Center
    Replies: 0
    Last Post: 03-31-2006, 08:01 PM
  2. Using Ice with non-local hosts
    By lahiatt in forum Help Center
    Replies: 1
    Last Post: 06-27-2005, 01:50 PM
  3. Replies: 1
    Last Post: 05-18-2005, 12:49 AM
  4. Multiple Hosts in proxy string ???
    By DeepDiver in forum Help Center
    Replies: 2
    Last Post: 04-20-2005, 11:51 AM
  5. Can IcePack Service and server run in different hosts?
    By eyexercise in forum Help Center
    Replies: 11
    Last Post: 12-19-2004, 08:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •