Scenario
You are debugging the service part of your application. You have IBM Purify installed on your Windows system and would like to instrument and run your service in Purify.
Steps
1. Instrument your service using the command
purify /Replace=yes /Run=no MyService.exe
2. Run symphony in a foreground process. Enter the following command from the command line.
soamservice -unregister
To re-enable Symphony DE to run in background service mode, use the following command. Don't enter the following command until you are finished with IBM Purify.
soamservice -register
3. Start Symphony DE from the tray icon or enter the command
soamstartup
4. Modify your application profile to pre-start your Symphony service and ensure that only one instance of the service is running. This assumes you have a one host cluster setup.
Edit your application profile and change the following line
Code:
<Consumer applicationName="SampleAppCPP" consumerId="/SampleAppCPP"
taskHighWaterMark="1.0" taskLowWaterMark="1.0"
preStartApplication="false" numOfPreloadedServices="1"/>
to
Code:
<Consumer applicationName="SampleAppCPP" consumerId="/SampleAppCPP"
taskHighWaterMark="1.0" taskLowWaterMark="1.0"
preStartApplication="true" numOfPreloadedServices="1"/>
Reregister your application
soamreg myAppProfile.xml
4. Run your application's client
The IBM Purify window should appear. Don't forget to modify your PATH variable to search the Purify cache directory.