This topic describes the steps required to run the custom
plug-in sample.
About this task
To run the custom plug-in sample, perform the following
actions:
Procedure
- Load the custom sample plug-in JAR file.
- Download the SamplePlugins.jar file to your local file system.
- Open the WSRR web UI.
- Switch to the Configuration perspective
if necessary, by selecting Configuration in
the Perspective list.
- Click .
- Click Load JAR plug-in.
- Click Browse and navigate to
the directory to which you downloaded the SamplePlugins.jar file.
- Select SamplePlugins.jar and
click Open.
- Enter SamplePlugins for the Plug-in
JAR configuration item name and click OK.
- Add the sample validation plug-in to the validation plug-in
properties file.
- Click .
- Click the Validation properties plug-in item and select the Content tab.
- If the Validation properties plug-in file has an existing
validators definition entry, beginning validators=, append the following to the end of that line:
,pluginsample.validator.StoreValidationDate
Otherwise, insert the following line anywhere in the file: validators=pluginsample.validator.StoreValidationDate
- Click OK.
- Add the sample modification plug-in to the modification
plug-in properties file.
- Click .
- Click the Modification properties plug-in item and select the Content tab.
- If the Modification properties plug-in file has an existing
modifiers definition entry, beginning modifiers=,
append the following to the end of that line:
,pluginsample.modifier.CreateBusinessObject
Otherwise, insert the following line anywhere in the file: modifiers=pluginsample.modifier.CreateBusinessObject
- Click OK.
- Add the sample notification plug-in to the notification
plug-in properties file.
- Click .
- Click the Notification properties plug-in item and select the Content tab.
- If the Notification properties plug-in file has an existing
notifiers definition entry, beginning notifiers=,
append the following to the end of that line:
,pluginsample.notifier.LogActivity
Otherwise, insert the following line anywhere in the file: notifiers=pluginsample.notifier.LogActivity
- Click OK.
- Run the custom plug-ins by loading a WSDL document.
- Download the MonolithicStockQuote_ProductionEnvironment.wsdl file to your
local file system.
- In the WSRR web UI, switch to the Administrator
perspective, by selecting Administrator in
the Perspective list.
- Click .
- Select WSDL for the document
type.
- Click Browse and navigate to
the directory to which you downloaded the MonolithicStockQuote_ProductionEnvironment.wsdl
file.
- Select MonolithicStockQuote_ProductionEnvironment.wsdl and click Open.
- Click OK and then click Finish.
- Verify that the validation plug-in ran successfully.
- Click .
- Expand Additional Properties. If the validation plug-in ran successfully, you will see
a property called Date_and_Time for which
the value is the date and time at which you loaded the WSDL document.
- Verify that the modification plug-in ran successfully.
- Click . If
the modification plug-in ran successfully, you will see a concept
object called MonolithicStockQuote_ProductionEnvironment.wsdl_BusinessObject. This object was created by the modification plug-in.
- Click MonolithicStockQuote_ProductionEnvironment.wsdl_BusinessObject to display the object details. Under Relationships, you will see a relationship called referencedWSDL whose target is the WSDL document. This
relationship was created by the modification plug-in.
- Expand Additional Properties. You will see a property called Date_and_Time. This is because the validation plug-in ran again when the concept
object was created.
- Verify that the notification plug-in ran successfully.
Note that you must have access to the WebSphere® Application Server administrative
console to perform this step.
- Open the WebSphere Application Server administrative console for the server on which
WSRR is deployed.
- Click .
- Click View alongside the entry
for SystemOut.log.
- Set the values in the Retrieve Lines field such that
you display the last 200 lines of the log file.
- Scroll to the end of the file. If the
notification plug-in ran successfully, you will see, near the end
of the file, the following entry:
SystemOut O MonolithicStockQuote_ProductionEnvironment.wsdl
was created successfully
This line was written to the log
by the notification plug-in. You will see a similar entry for MonolithicStockQuote_ProductionEnvironment.wsdl_BusinessObject, because the notification plug-in ran twice, once for each object.