-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
I have tried to implement my custom FaxMonitorEventListener and then add it to the client, I found that the event.getFaxJobStatus() is not correct when I compare it against the window fax queue
main program
FaxClient faxClient = FaxClientFactory.createFaxClient("windows", null);
MyFaxMonitorEventListener myFaxMonitorEventListener = new MyFaxMonitorEventListener();
faxClient.addFaxMonitorEventListener(myFaxMonitorEventListener);
public class MyFaxMonitorEventListener implements FaxMonitorEventListener {
....
@Override
public void faxJobStatusChanged(FaxMonitorEvent event) {
log.info("job: " + event.getFaxJob().getID() + " status:" + event.getFaxJobStatus() + " file:" + event.getFaxJob().getFile().getName());
if (event.getFaxJobStatus() == FaxJobStatus.ERROR) {
} else if (event.getFaxJobStatus() == FaxJobStatus.UNKNOWN) {
}
}
Reactions are currently unavailable