I have a CXF client. I have a handle on the Service object, from which
I get a Port (by calling get<Type>Port() on the service).
I thought I could look up the ClientImpl via ClientProxy and then call
setSynchronousTimeout(int t) to set the invocation timeout ( the time it
takes for the service to execute). But, this doesn't work...
So, my code looks like this:
public void callSomething(<Type>Service svc) {
<Type>Port port = svc.get<Type>Port();
Client client = ClientProxy.getClient(port);
((ClientImpl)client).setSynchronousTimeout(1 * 1000);
port.doMethod();
}
Even with this code (which seems to set the timeout to 1s), the
doMethod() call is allowed to block indefinitely.
Anyone have a solution?
Thanks,
jared
Jared Warren
jcpenney, Enterprise Marketing & Pricing Systems
972.431.3392 | A1-112 | MS 1120
6501 Legacy Dr., Plano, TX 75024
<font face="monospace"size="-3"><br>The information transmitted is intended
only for the person or entity to which it is addressed and <br>may contain
confidential and/or privileged material. If the reader of this message is not
the intended<br>recipient, you are hereby notified that your access is
unauthorized, and any review, dissemination,<br>distribution or copying of this
message including any attachments is strictly prohibited. If you are not<br>the
intended recipient, please contact the sender and delete the material from any
computer.<br>