Home Help Center

DemoIceStorm strange error

changchang Member shen changOrganization: nasaProject: AMO HDU ✭✭
Hi All

I am testing some IceStorm demo code in C#. One error I could not understand.

If I change config.service file's
IceStorm.InstanceName=DemoIceStorm
to
IceStorm.InstanceName=TestIceStorm

run icebox as
icebox --Ice.Config=config.icebox

This change will cause this code fail:
ObjectPrx myObjecPrx = Ice.Application.communicator().propertyToProxy("TopicManager.Proxy");

#config.icebox file is:
#######################
IceBox.ServiceManager.Endpoints=tcp -p 9998
IceBox.Service.IceStorm=IceStormService,34:createIceStorm --Ice.Config=config.service
Ice.Warn.Connections=1
Ice.Trace.Network=3
Ice.Trace.Protocol=1

#config.service file is:
######################
IceStorm.InstanceName=DemoIceStorm
IceStorm.TopicManager.Endpoints=default -p 10000
IceStorm.Publish.Endpoints=tcp -p 10001:udp -p 10001
IceStorm.Trace.TopicManager=2
IceStorm.Trace.Topic=1
IceStorm.Flush.Timeout=2000
Ice.Trace.Network=1
Freeze.DbEnv.IceStorm.DbHome=db


When i change that back, Everything is fine.
Anthing I missed?

Thanks

Chang

Comments

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi,

    What is your definition of "TopicManager.Proxy", you should update it too. If you are following the cs IceStorm demo is in config.sub:
    #
    # This property is used by the clients to connect to IceStorm.
    #
    TopicManager.Proxy=DemoIceStorm/TopicManager:default -p 10000
    
  • changchang Member shen changOrganization: nasaProject: AMO HDU ✭✭
    IceStorm Configurations

    Hi XDM

    Could you or anyone give me sample config files for IceStorm with all possible properties being listed and all possible values with comments

    Or points me to a good doc link besides the link below?
    Configuring IceStorm - Ice 3.4 - ZeroC

    (1)List all config files which could be used by IceStorm
    (2)all possible properties and their possible values of that config file, or indicate that the
    property value could be omitted and its default value listed.


    for example in config.service
    #protocal: default, tcp, udp, ssl
    #portnumer: any number between 1001 to 10000
    #host: ip-address in format xxx.xxx.xxx.xxx or DNS name such as myserver.mycompany.domain
    #what if I need to use a proxy server yyy.yyy.yyy.yyy to reach the remote IceStorm server xxx.xxx.xxx.xxx?
    IceStorm.TopicManager.Endpoints=protocal -h host -p portnumber

    in config.icebox
    # number: a digital number, for example 34 (what it means? priority?)
    # configFileName: local or full path such as service.config in current directory or
    #"c:\users\admin\icestorm home\service.config",
    # or "/usr/root/icestorm home/service.config" in other location.
    IceBox.Service.IceStorm=ServiceName,number:Command --Ice.Config=ServiceConfigFileName


    and so on.

    Thanks

    Chang
  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi Chang,

    There are two config files for your IceStorm service, one for the IceBox server/container, which has nothing to do with IceStorm, and one for the IceStorm service loaded in this server.

    If you were to load additional services in this IceStorm instance, you would have more config files--one per service.

    The IceBox.Service.IceStorm property in the config.icebox service tells the IceBox server how to load the service named 'IceStorm': which DLL/shared library to load, and which "command-line" arguments to pass to this service.

    With:
    IceBox.Service.IceStorm=IceStormService,34:createIceStorm --Ice.Config=config.service
    

    We tell IceBox to load the IceStormService library IceStorm.TopicManager.Endpoints=protocal -h host -p portnumber (becomes IceStormService34.dll, IceStormService34d.dll, libIceStormService.so.34 etc., depending on the platform), and provide a config file to IceStorm.

    Regarding:
    IceStorm.TopicManager.Endpoints=protocal -h host -p portnumber
    

    Please refer to Proxy and Endpoint Syntax - Ice 3.4 - ZeroC for full details on the endpoint syntax ("server semantics" here).

    Hope this helps,
    Bernard
  • changchang Member shen changOrganization: nasaProject: AMO HDU ✭✭
    Hi Bernard and XDM

    Thanks for the quick reply. That made thing much more clear. If there are some sample template config files for different scenarios, it will be much easier for newcomer to understand.


    Thanks

    Chang
Sign In or Register to comment.