Skip navigation.

Extension SDK for BEA WebLogic Network Gatekeeper

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

Creating an example SESPA module

The following section provides a description on how to create an example SESPA module:

The example SESPA module will use the interfaces defined for the example ESPA service capability module prepared in Creating an example ESPA Service Capability module. The SESPA module will have the following properties:

 


General preparations

This is general preparations. Do not perform these two steps if they already have been performed when creating the Service Capability as described in Creating an example ESPA Service Capability module.

  1. Make sure the files for the SESPA Module and the SESPA interfaces are copied to the directory exampleproj. That is, all files and directories in module_templates\sespa_sc_impl and module_templates\sespa_sc_if.
  2. Change directory to bea\wlng21\esdk\build and issue the command ant

 


Preparing the SESPA service capability interface

Build environment

  1. Edit the file exampleproj\sespa_sc_if\build.xml.
  2. Edit the properties described in Adapting the build files for the modules on page 15-40 to reflect the desired names.

SESPA service capability module interface structure

  1. Rename the directories to reflect the desired package structure. Also change the package definitions accordingly.

SESPA service capability module interfaces

  1. Add any additional methods to be used in the interface between the SESPA service capability and the WESPA module. Use the method definitions in MyServiceCapability.java, MyServiceCapabilityListener.java and MyServiceCapabilityNetworkTriggeredEventListener.java as templates.
  2. In the template file, the method myMethod is an example of how to define an asynchronous method invoked by the WESPA module on the SESPA module and myMethodWait is an example of a synchronous method.

    An assignmentID is given when invoking the method myMethod. The ID connects an invocation to myMethod and the corresponding invocation of myMethodResult or myMethodError.

 


SESPA service capability module interface compilation

  1. Compile the SESPA service capability interface by changing directory to exampleproj\sespa_sc_if\ and execute the command ant

 


Preparing the SESPA service capability module implementation

Set up the build environment

  1. Edit the file exampleproj\sespa_sc_impl\build.xml.
  2. Edit the properties described in Adapting the build files for the modules on page 15-40 reflect the desired names.

Defining the OAM methods

  1. Edit the files exampleproj\espa_sc_impl\MyServiceCapabilityOAM.idl. Define any additional OAM methods and adapt the structure to the structure defined in SESPA service capability module interface structure

SESPA service capability module structure

  1. Rename the directories to reflect the desired package structure. Also change the package definitions accordingly.

SESPA service capability module listener implementation

The listener interface implementation has to be updated so it implements the ESPA service capability module listener interface as defined in Interfaces to the ESPA service capability module.

  1. Open the file MyESPAServiceCapabilityListener_impl.java in exampleproj\sespa_sc_impl\src\com\acompany\sespa\mysctype.
  2. Adapt the import statement for the ESPA Service Capability interface if there has been any changes.
  3. Adapt the name of the class that the extends the listener, the name of the class is the same as as the classname for the callback interface, with the addition POA, for example:
  4. public class MyESPAServiceCapabilityListener_impl extends MyServiceCapabilityListenerPOA

SESPA service capability module implementation

The interface has to be updated so it implements the MyServiceCapability interface as defined in SESPA service capability module interfaces.

  1. Open the file MyServiceCapabilityImpl.java in exampleproj\sespa_sc_impl\src\com\acompany\sespa\mysctype.
  2. Adapt the import statement for the ESPA Service Capability module manager if there has been any changes to them.
  3. IAdapt the method names to reflect the names in the interface definitions.

SESPA service capability module service

  1. Open the file MyServiceCapabilityService.java in exampleproj\sespa_sc_impl\src\com\acompany\sespa\mysctype.
  2. Define the name that the WESPA modules will use to fetch the SESPA Service Capability implementation. The name is defined when the SESPA Service Capability registers itself in SLEE Common Loader, SleeCommonLoader.getInstance().addObject(...).

 


Compilation of the SESPA service capability module implementation

Prior to this, the plug-in interface, ESPA service capability module interface, and the SESPA service capability interface must have been built.

  1. Compile the SESPA service capability module implementation by changing directory to exampleproj\sespa_sc_impl and execute the command ant

 


Installing the SESPA service capability module

This section describes how to install and deploy the SESPA service capability module that was created using the instructions in this section. For instructions on how to use Management tool and how to register an SESPA service capability module in more detail, see WebLogic Network gatekeeper User's Guide.

  1. Make sure you have access (by ftp directly to the file system) to the SLEE the SESPA service capability module shall be installed in.
  2. Open the Management Tool and select the SLEE in which to install the SESPA service capability module.
  3. In the SLEE_deployment service, choose install. Enter the URL to the jar-file in the field ServiceJarURL and click Invoke.
  4. In the example, the path and file name is file:///<drive>/exampleproj/sespa_sc_impl/lib and the name was defined in the build file property local.jarName.

Note: On Windows systems, use three (3) slashes prior to the drive name.

  1. In the SLEE_deployment service, choose start. Enter the SLEE name for the SESPA service capability module. Click Invoke.
  2. The name was defined in the build file property local.deployName.

  3. In the SLEE_deployment service, choose activate. Enter the SLEE name for the SESPA service capability module. Click Invoke.
  4. The name was defined in the build file property local.deployName.

 

Skip navigation bar  Back to Top Previous Next