jQuery in Action, 2nd edition*
The moose likes Sockets and Internet Protocols and the fly likes trying to get configureBlocking(false);  to work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "trying to get configureBlocking(false);  to work" Watch "trying to get configureBlocking(false);  to work" New topic
Author

trying to get configureBlocking(false); to work

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 573
I have a message producer but the socket is never set if the serverSocketChannel.configureBlocking(false) is set.
In the code below it will never reach the block of code protected by sChannel != null
I know that it takes time to connect but this seems to loop for ever
 
Consider Paul's rocket mass heater.
 
subject: trying to get configureBlocking(false); to work
 
Similar Threads
servlet applet object io streams
object serialization to file
Why this stand alone app cannot communicate with servlet
servlet to servlet and back??
Why this stand alone app cannot communicate with servlet