Communication sample overview

The communication sample demonstrates communication between tasks, as described in IBM Director Interprocess Communication, and has C++ and Java components.

Detail of the communication sample

The C++ part of this sample shows a processor called msglogr that can extract the message text and severity level from a command and write them to a file. The Java part of this sample shows a way of using service nodes and commands. Sample code defining two Java classes is provided.

SrvTask
Demonstrates how a server task can communicate with msglogr as an agent program.
SrvTaskAsynch
Sends a message asynchronously to the msglogr program, waits for the return code, and prints a completion message.

Source files of the sample