This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Socket is not receiving the first request after long Ideal time 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 "Socket is not receiving the first request after long Ideal time" Watch "Socket is not receiving the first request after long Ideal time" New topic
Author

Socket is not receiving the first request after long Ideal time

Venkatesan Jayaram
Greenhorn

Joined: Mar 08, 2011
Posts: 1

Hi All,

I am getting the problem in a socket program as the socket is not able to receive the first request after long ideal time(one day). I have sent the request to the socket program from simulator program but it did not get the request for first time but after that it is receiving all the requests.

This Socket program is deployed in glassfish server in Windows 2008 Operating system.

We are using a thread to start and listern the socket to receive the request and we did not configured any time out for the socket.

The Below Method will be called in the Glassfish Server Startup itself. This method is written in the application's Life Cylcle listener class so this will create the socket and the thread will call the listern() method in SocketListener class to start to listen for request.


=================================================================================


Below is the Socket program that we are using to receive the request from the Front End system.

Here my problem is, I am not able to receive the first request after I put the glassfish sever to ideal for one or two days.

I mean, I did not receive any log that is available in the listen() method and the process in not continued for the first request only, I am able to receive request and it is processed further from the second request.

Kindly help me to resolve this issue, because it is very critical to me.


Thanks in Advance.

Regards,
Venkatesan.J


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Socket is not receiving the first request after long Ideal time
 
Similar Threads
Help with Chat software
Singleton ( a Deeper Understanding )
Socket Server only processing one request, then it just queues them up
Need help with thread pool issue..
Socket Server Serving Numbers