[jboss-user] [jBPM] - What is taskOperationHandler.waitTillDone(5000) suppose to do?

lyman liu do-not-reply at jboss.com
Tue Dec 11 04:48:53 EST 2012


lyman liu [https://community.jboss.org/people/lymxiang] created the discussion

"What is taskOperationHandler.waitTillDone(5000) suppose to do?"

To view the discussion, visit: https://community.jboss.org/message/782749#782749

--------------------------------------------------------------
...
System.out.println("begin");
responseHandler.waitTillDone(5000);
System.out.println("end ");
...
It means:Print "begin", wait 5000ms, print "end",all right? 

My question is :
How can I  determined the wait time ?

if the network is bad, I wait 5000 and then  execute  client.dispose(), 

it will be throw    exception  that  
java.nio.channels.ClosedSelectorException
 at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
 at sun.nio.ch.SelectorImpl.select(Unknown Source)
 at org.apache.mina.transport.socket.nio.NioProcessor.select(NioProcessor.java:70)
 at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1067)
 at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)


Can  u give me  some solutions about it ?
Regards.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/782749#782749]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121211/ab6d908a/attachment.html 


More information about the jboss-user mailing list