Home Help Center

Viewing client connections

mcrystalmcrystal Member Mayer CrystalOrganization: Goldman SachsProject: N/A
Is there any way to view the list of clients currently connected (or which have references to) a given adapter? For instnace, if I have implemented a service which returns market data and I have multiple instances, is there a way to see which clients (servers/ports) are connected which instances?



Thanks,
Mayer

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi,

    There is no way for a program to query the object adapter to obtain a list of all of its connections. However, you can run the program with network and/or protocol tracing enabled. Also, the Ice::Current parameter that is provided to each servant operation contains an Ice::Connection member; you can call toString on this member to get connection information.

    Take care,
    - Mark
  • mcrystalmcrystal Member Mayer CrystalOrganization: Goldman SachsProject: N/A
    Thanks Mark. I thought that was the case, but just wanted to be sure... I wrote a JMX wrapper for the service and wanted to be able to programmatically draw the connectivity graph from start to finish (including client connections) by polling the JMX server. The Ice::Current will be exposed for that method call but it doesn't allow me to accomplish what I was trying to do.


    Thanks for the quick response,
    Mayer

    mes wrote:
    Hi,

    There is no way for a program to query the object adapter to obtain a list of all of its connections. However, you can run the program with network and/or protocol tracing enabled. Also, the Ice::Current parameter that is provided to each servant operation contains an Ice::Connection member; you can call toString on this member to get connection information.

    Take care,
    - Mark
Sign In or Register to comment.