Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Socket is not receiving the first request after long Ideal time

 
Venkatesan Jayaram
Greenhorn
Posts: 2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic