Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
The parameter configuration functionality is provided by the Service Management feature of the WSO2 feature repository You can set parameters to a service in two levels as follows. In both levels, specific configuration steps are the same from step 4 onwards in the service-level parameter configuration section described here.:
  • Operation-Level : Parameters can be configured for a particular operation of a service. For information on how to access operation-level parameter configuration windows, refer to section See Operation Management.
  • Service-Level Parameters can be configured for a particular service as described below.

Follow the instructions below to add and manage the parameters of to a service.
1. Log on

Service-level parameters 

  1. Log in to the
product's

Image Removed

2. The "Deployed Services" screen
  1. management console and select
"List" under "Services."
  1. Services > List from the Main menu.  
  2. The Deployed Services window appears. Click on the necessary service
. For example,

Image Removed

3. The "Service Dashboard" screen appears. Click "Parameters" in the "
  1. to access its dashboard.
  2. In the dashboard, under Quality of Service Configuration
"
  1. panel, click Parameters.
    Image Modified

Anchor444. Parameters can be defined
  1.  
  2. You can define parameters inside the services.xml as an immediate child element of the service element.
These parameters can be accessed
  1. You can access parameters using the message context (at the runtime) or AxisService or AxisOperation. A parameter has two attributes:
    • name - The mandatory attribute which defines the parameter name.
    • locked - The optional attribute. The idea of a locked attribute is to express whether we allow the parameter value to be overridden by a child node in the hierarchy.

    For example, if a parameter was added in the axis2.xml file setting the locked attribute to
True, then if
  1. true, it throws an exception when a service tries to add another parameter with the same name
, it will give an exception
  1. .
The Service Management feature provides an easy method to generate the Service parameters.
  1. Click
"
  1. Add New...
"
  1. button to generate a
new service parameter.

Image Removed

5. Enter the parameter name and click "OK" to add a parameter to the list.

Image Removed

6. Enter the parameter value and click on the "Update" button to save
  1. new
parameters in the
  1. service
group.

Image Removed

7. If you want to delete a
  1. parameter
, click on the "Delete" button associated with it.

Image Removed

Excerpt
hiddentrue
Instruction to configure parameters in the quality of service configuration panel
  1. .