5.21.13.3 Accessing Extensions Using RMI

 



 

Accessing Extensions Using RMI (from BE Server)

 

The steps to access the provisioning extensions using RMI from BE Server are as follows :

Syntax

 

<Extension>

name="<Name of the Extension>"

class="<fully qualified class name>"

</Extension>

 

Example Entry

 

<Extension

name="Generic"

class="com.adventnet.nms.provisioning.ext.GenericExtension" />

Accessing Extensions Using RMI (from FE Server)

 

Any ExtensionAPI request accessed using RMI from FE Server, is routed through the proxy implementation of the FE server. The advantage of accessing the ExtensionAPI reference through the proxy implementation of the FE server, is to provide the access for the remote objects even through applets.

 

The steps to access the ExtensionAPI reference using RMI from FE Server are as follows :

Note: Please note that the Extensions will be instantiated only once, when it is requested for the first time using ProvisioningAPI.getExtensionAPI() method. Further requests for the same Extension API would return the same instance.

 

Tool to generate the Proxy implementation for the ExtensionAPI

 

In the above steps, in order to create the exact mirror image proxy implementation for the BE Server's ExtensionAPI object, a tool is provided. This tool can be accessed by invoking the ExtensionProxyGenerator.bat/sh file in <Web NMS_Home>/bin/provisioning directory, which accepts the following inputs :

For example, let us assume that a new extension API "ExampleExtensionAPI" is written extending the already existing interface "ExtensionAPI". The new extension API defines additional methods over "ExtensionAPI". To create the proxy implemenation class for the user-written extension "ExampleExtensionAPI" reference that extends the definitions of "ExtensionAPI", invoke the tool with the following arguments from the command prompt :

 

ExtensionProxyGenerator -name com.adventnet.nms.extension.ExampleExtensionProxy -extends

com.adventnet.nms.fe.provisioning.GenericExtensionProxy -implements

com.adventnet.nms.provisioning.ext.ExampleExtensionAPI

 

(Or)

 

ExtensionProxyGenerator -name com.adventnet.nms.extension.ExampleExtensionProxy -extends

com.adventnet.nms.fe.provisioning.GenericExtensionProxy -implements

com.adventnet.nms.provisioning.ext.ExampleExtensionAPI -d [c:/mydir]

 

Here,

Note: Using the tool provided, you can create the proxy implementation classes for any number of ExtensionAPI objects to be accessed.

 



Copyright © 2011, ZOHO Corp. All Rights Reserved.