Samples : Installing the Sample for Service Probe for IBM WebSphere Application Server

Installing the Sample for Service Probe for IBM WebSphere Application Server
Prerequisites
Before proceeding with the sample execution, ensure the following prerequisites:
Deploying the Sample
Perform the following steps to deploy and execute the Service Probe for IBM WebSphere Application Server sample:
1.
Edit book_order_tutorial_data.properties located at <TIBCO_Home>/amma-was/<version_num>/samples/ and provide details of Websphere Application Server on which you want to deploy the sample service.
2.
cd <TIBCO_Home>/amma-was/<version_num>/samples
3.
Run <Ant_Home>/bin/ant f book_order_tutorial.xml deploy.
4.
Deploy the ReBookOrder.ear located at <TIBCO_Home>/amma-was/<version_num>/samples manually from IBM WebSphere Application Server console.
Loading Tutorial Rules, Custom Metrics and Actions in TIBCO ActiveMatrix Service Performance Manager
1.
Set the WAS_CELL_NAME, WAS_MACHINE_NAME, and WAS_SERVER_PORT in the TIBCO_SPM_HOME\tutorial\scripts\tutorialsetup_data.properties file.
2.
Replace the following lines in the TIBCO_SPM_HOME\tutorial\scripts\tutorial_was_spmdata.xml-template:
<ClassifierCustomMetric name="BookTitlesample" xpath="{{flow=output,document=output}}//ns0:orderBookResponse/ ns0:Book/ ns0:title">
<InstrumentCustomMetric name="QtyOrderedsample" xpath="{{flow=input,document=input}}//ns0:orderBookRequest/ ns0:quantity"
<InstrumentCustomMetric name="OrderTotalsample" xpath="{{flow=output,document=output}}//ns0:orderBookResponse/ ns0:orderTotal"
by
<ClassifierCustomMetric name="BookTitlesample" xpath="{{flow=output,document=output}}//ns0:orderBookResponse/Book/title">
<InstrumentCustomMetric name="QtyOrderedsample" xpath="{{flow=input,document=input}}//ns0:orderBookRequest/quantity"
<InstrumentCustomMetric name="OrderTotalsample" xpath="{{flow=output,document=output}}//ns0:orderBookResponse/orderTotal"
 
3.
TIBCO_SPM_HOME\bin\spmcmdline.bat tutorial_build.xml was
Undeploying the Sample
To undeploy the sample:
1.
cd <TIBCO_Home>/amma-was/<version_num>/samples
2.
Run <Ant_Home>/bin/ant f book_order_tutorial.xml undeploy.