Problem:
- Product Name: VisiBroker
- Product Version: 6.0 and above
- Product Component: POA/ServerManager/vbconsole
- Platform/OS Version: All
How can the application or some other utility determine how many objects are activated by a server?
Resolution:
This is possible using the ServerManager functionality provided by VisiBroker (which is a proprietary extension of the ORB's capabilities).
The ServerManager is intended mainly for diagnostic purposes and is how the VisiBroker console functionality is implemented. In the examples directory there is a "ServerManager/basic" example which shows the kind of information that can be queried. To inspect Active Object Map associated with the "RootPOA", you would be looking for a container with a name like "/ORB/RootPOA/ActiveObjectMap".
Check out the html page describing the example. The server must be started with the following options for the ServerManager functionality to be enabled:
vbroker.orb.enableServerManager=true
vbroker.serverManager.name=<name>
You can also use the "vbconsole" to look at servers that have the ServerManager enabled. Start up the console and create a new smart agent domain for your OSAGENT_PORT. Then expand the tree to find the server manager and then expand the "RootPOA" and select "ActiveObjectMap". This is where the bank_agent account objects are listed. However only repository id's are available. You do however get a count (which can be obtained programmatically as described in the example).
A screen capture of a vb console is shown below:

There is more information about using the VisiBroker ServerManager in the Developer's Guide for both C and Java.
#POA
#Security
#ServerManager
#vbconsole
#VisiBroker
#AOM




