|
The Packaging of applications built using Client Builder to NAR (NMS ARchive) is done using the Package Wizard. After NAR is created, NAR is installed in the Web NMS Client (using Deployment Wizard in Web NMS). Before the packaging the chassis application to NAR, you must compile the project Follow the steps given below to compile the project.
Compiling the Project
Ensure that the "NmsClientClasses.jar" of Web NMS is in the CLASSPATH for proper compilation. You can verify this in the "Required Jars" combo box present in the Classpath Settings tab of Project Properties dialog (invoked using menu command Properties > Project Properties)
Ensure that the <Web NMS Home >/classes and <Web NMS Home>/tutorials/ems_tutorial/classes are in classpath. You can verify this in the "Classpath" combo box present in the Classpath Settings tab of Project Properties dialog (invoked using menu command Properties > Project Properties)
Regenerate the Project using the menu command Project > Regenerate Project.
Compile the Project using the menu command Project > Compile Project. You will get the message "Compilation succeeded for EMS_Chassis" in status bar.
Packaging the Classes using Package Wizard
Invoke the Package Wizard for creating the Device Specific NAR using the menu command Tools > Package for Web NMS > Device Specific. For detailed explanation on using the Package Wizard follow the topic Integration with Web NMS.
Select the value "com.adventnet.nms.tutorials.ems.ChassisScreen" from the Classes list and click "Next" to proceed to next screen.
Choose the required destination
directory where the NAR has to be created using the browse
button. Click "Next"
to proceed to next screen.
Provide the corresponding device type that of the device host such as "Switch" in the "Device Type" field. Click "Next" to proceed to next screen.
Ensure the required device information are listed in the "DESTINATION DIRECTORY" and click "Next" to proceed to final screen of the Package Wizard.
Select the "ManagingObjectName" value from the Parameter list and provide the value "${name}" in the "Value" text field. Click "Modify" button to change the values in the list as in the figure below. This is to provide the ManageObjectName that dynamically changes depending on the Map node (the application is invoked from the Map node) in Web NMS Client.

Click "Finish" button to close the Package Wizard to get the confirmation dialog with the message "Chassis_Tree" created successfully at <specified location>.
Import the NAR in the EMS Project using the Client Application Import Wizard with the required menu name and menu item.
|
|
Note: The above project is also available in <Web NMS Home>/StudioTools/ClientBuilder/projects directory with the project name EMS_Chassis. You can also load and see this project for your reference. |
|