5.21.13.4 Accessing Extensions Using JMS/Session

 



 

Overview

 

Any ExtensionAPI reference to be accessed by the Provisioning client using JMS is routed through the JMS Server. The advantage of accessing the ExtensionAPI reference using JMS is, the request passed from the client to the server is persistent and the data is not lost due to some unforeseen problems in the server-side. This topic explains the procedure for accessing the provisioning extensions using JMS/Session.

 

Accessing Extensions Using JMS/Session (from BE Server)

 

The steps to access the provisioning extensions using JMS/Session 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 JMS/Session (from FE Server)

 

Any ExtensionAPI request accessed using JMS from a remote JVM, 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 that it provides the access for the remote objects through applets.

 

The steps to access the provisioning extensions using JMS/Session 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 JMS/Session stub

 

The tool ExtensionStubGenerator.bat/.sh file provided in <Web NMS Home>/bin/provisioning directory can be invoked to generate the JMS/Session stub file corresponding to the ExtensionAPI reference to be accessed. To invoke the tool, run the ExtensionStubGenerator.bat/.sh file in <Web NMS Home>/bin/provisioning directory. The inputs to be passed to invoke the tool is as follows :

This would generate and place the stub files corresponding to the ExtensionAPIs in the appropriate location.

 

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 stub file for the user-written extension "ExampleExtensionAPI" reference that extends the definitions of "ExtensionAPI", invoke the tool with the following arguments from the command prompt.

 

ExtensionStubGenerator -className com.adventnet.nms.extension.ExampleExtensionProxy -extensionName ExtensionAPI -mode JMS/Session (depending on the required mode to access the Provisioning extensions)

 

(Or)

 

ExtensionStubGenerator -className com.adventnet.nms.extension.ExampleExtensionProxy -extensionName ExtensionAPI -mode JMS/Session (depending on the required mode to access the Provisioning extensions) -d [c:/mydir]

 

Here,

Hence, for all the ExtensionAPI references to be accessed from the Web NMS client using JMS/Session, you need to generate a JMS/Session stub file using the tool provided. The same should be placed under the appropriate location.

 

Note: Using the tool provided, you can create JMS/Session stub files for any number of ExtensionAPI objects to be accessed from the Web NMS Client.

 



Copyright © 2011, ZOHO Corp. All Rights Reserved.