## Out of Process : Producer : Is correlation on a different method?

This section is used to specify the correlation point, if your exit point where your action is scheduled, is different from where your payload needs to be correlated.

- Example 1

package com.packagename;
public class ProducerClassName {
private void startTransaction() {
exitPoint("Message");
}
private void exitPoint(String message) {
CustomPayload customPayload = new CustomPayload(message);
correlationPoint(customPayload, outputStream);
}

private void correlationPoint(CustomPayload payload, Stream outputStream) {
outputStream.writeObject(payload);
}

}

In the above example exitPoint(String message) of class com.packagename.ProducerClassName is the exit point while, correlationPoint(CustomPayload payload, Stream outputStream) of class com.packagename.ProducerClassName is the correlation point.

Values to put in this section of the tool for the above example.
Match Type: Matches Class
Full Class Name: com.yourpackagename.ProducerClassName
Method Name: correlationPoint
Method Parameters: CustomPayload payload, Stream outputStream