Listeners when using hylafax from Java

Posted by DaDaDom on Stack Overflow See other posts from Stack Overflow or by DaDaDom
Published on 2010-04-15T09:59:40Z Indexed on 2010/04/15 10:03 UTC
Read the original article Hit count: 334

Filed under:
|

I am trying to send a fax to a hylafax server via Java:

Client faxClient = new HylaFAXClient();
faxClient.open(...);
faxClient.user(...);
faxClient.pass(...);
Job j = faxClient.createJob();
job.setStuff(...);
job.setNotifyType(Job.NOTIFY_ALL);
faxClient.addTransferListener(new FaxTransferListener());
faxClient.addConnectionListiener(new FaxConnectionListener());
faxClient.submit(job);

The problem is that I don't get any notifications on any of the listener methods.

When I watch the queues on the hylafax server, e.g. via JHylaFax, the job failed, but how can I react to that event programatically on client side without having to poll the job queues regularly?

© Stack Overflow or respective owner

Related posts about hylafax

Related posts about java