Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry® OS Smartphones

Posts: 21
Registered: ‎10-18-2011
My Device: Blackberry Bold 9900
My Carrier: T Mobile

"JSR 172 Web Service Timeout"

I have successfully used JSR172 and Sun's stub generator to access my web services and it works very nicely. The only hitch I see is that if for some reason ( not very likely but I'd like to handle it anyway ) the Blackberry client connects to the service by never receives a response, it appears to hang indefinitely.


Is there a way to set a time out, since it doesn't seem to fall through normal error trapping


I suppose I could kill the thread after a certain amount of time but that seems rude and would likely cause other problems


This is at the point where the JSR172 Invoke api is called.



thnx in advance...