For a simple service, such as the one we just wrote, there is only one parameter that can be configured - the schedule at which the service runs! But what if we need to add more parameters? Let's say we want to add the tutorial name in the service, which can be changed later if needed.
The following are the steps required:
Modify the service configuration XML to include the configurable properties:
<someservice id="jtricksserviceid"> <description>My New Service</description> <properties> <property> <key>Tutorial</key> <name>The tutorial you like</name> <type>string</type> </property> </properties> </someservice>
Here, we have added a string property with the key: Tutorial...