Hello Phillip,
Yes, it is somewhat expensive, because the nRealmNode will try to create a complete view of the server on the client side, all the configuration, assets (topics, queues, data groups), metadata of these assets and then statistical information about them. Furthermore, if this realm server is part of a cluster, a zone, or has a connection to another realm server, this same administrative session will also follow that link and will similarly build a complete picture of the other server as well, and it will proceed the same way until it’s traversed the entire landscape. This will happen regardless of whether you request any of this information from the administrative session or not.
Therefore the administrative session is better utilized as a long-living object, e.g. create one in the beginning of the life cycle of your application, keep a reference to it, and keep it alive until the end of life of your app. You can still have your scheduled poller obtain information from the session on a regular interval.
Cheers,
Stefan
#Universal-Messaging-Broker#Integration-Server-and-ESB#webMethods