Has anyone ever used them the Java BrokerClient API - [SIZE=2]

I have tried using it to resend a Event which I have been received but want to re-put it back on the webMethods Broker rather than acknowledge it but each I time I run the code is fails and reports back the connection to the Broker is closed !!! I am calling it with a receipt sequence number from the Event I am processing and this receipt sequence number is passed to resendUnacknowledgedEvents in a long array. Therefore I think I am doing it right but it keeps failing.