The subagent samples demonstrate how you can extend the IBM Director Java-based Agent to provide your own IPC-connected services that are recognized by IBM Director servers. For a description of how to create an IBM Director Java-based Agent extension, see Extending the Java-based agent.
The first sample, SampleSubagent, demonstrates the simplest type of subagent to implement. The properties file simply identifies a ServiceNode subclass which is registered with the agent and is prestarted.
The second sample, SampleSubagent2, demonstrates a subagent which provides a subclass TWGAgentExtension to perform initialization, running and termination of the subagent. The subclass registers its service in the code rather than via the properties file definition.