Java service that listens to a Broker message

Hi, I need to write a java service that listens to the Broker message pub.publish.notification:error and write the contents to a log file. Can anybody please help me on how to write such a Java service which listens to a Broker message ?:confused:

Since you say “Java service” I assume you’re trying to create something in Integration Server? If so, then just create a trigger and have it invoke your Java service. You should be sure that you really need to use Java to accomplish what you need. Chances are, it doesn’t need to be in Java.

If you need to use just plain ol’ Java from some other environment, there is a Broker Java API.

You may want to review the Logging and Monitoring Guide which is available on Advantage. You may find the environment already has facilities to do what you need.