Management Server is started as a separate process (NMS BE Server) when NMS Server is started. Please refer Management Protocols Startup Options for information on the process. The Management Server that is started can be accessed by the applications in the following 2 scenarios:
where Management Server and the Application are running in the same JVM
where Management Server and the Application are running in different JVM
Management Server and Application Running in the Same JVM
The following image depicts the scenario wherein both the Management Server and the Application are running in the same JVM (user client applications interface directly with Management Server through Java API).
The application running in the same jvm as NMS Sever can be accessed in the following manner.
The application should get the instance of the Management Server using the getInstance() method.
ManagementServices ms = ManagementServicesAPI.getInstance((String)null,2);
Using the above instance user application can perform the required transactions (Request-Response, Polling, Event Notifications) with the ManagementServer using the ProtocolProperty.
To develop and integrate an application to be run along with NMS (during startup) the RunProcessInterface has to be implemented. Please refer Module Services for more information on the RunProcessInterface.
Management Server and Application Running in different JVM
The following image depicts the scenario wherein the Management Server and the Application are running in different JVM.
In this scenario, the Application can access the Management Server (started along with Web NMS) only through the NMS Application Client.
The steps to be followed by the application to access the ManagementServer is given below:
The application should get the Management Client instance.
ManagementClient mc = ManagementServicesAPI.getInstance(applet,MS_THREE_TIER_MODE);
Note: The Management Server (residing in NMS JVM) can be communicated only in Applet Mode when the application is running in different JVM.
Using the Management Client instance obtained the application can perform the required transactions with the device using the ProtocolProperty Object.
To develop and integrate an application to run along with NMS Application Client, refer Integrating Applets into Client in Java Client Framework topic.
For viewing samples of the XML packets communicated between the Management Client and the ManagementServer please refer to the XML Structures.