This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes  Program not getting response or failed to send request Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark " Program not getting response or failed to send request" Watch " Program not getting response or failed to send request" New topic
Author

Program not getting response or failed to send request

Darren Cheong
Greenhorn

Joined: Jan 05, 2006
Posts: 4
Hi all,

I've been trying to solve this for a while now but I am lost, I am actually trying to make a middleware application that allows a frontend client to connect to it and send messages to it and my application will route the message to a backend client connected to it.

I've currently implemented a model where I have two sockets, a frontend one and a backend one, messages from the frontend are formatted to a format suitable for the backend , sent out and another thread listens to responses from the backend and replies it to the front end accordingly.

I've tried using this setup with a pseudo backend and it seems to work correctly althoug the backend is operating on my local dev network. Here's the strange thing though, when I try to implement it with the real backend (which is written in fortran running on openvms), only a few times does the routed messages get out and come back with a response, and when that happens , the next few messages routed are guaranteed to work but will stop working in the end also.

I'm just wondering what could cause something like this. The data that does come back is what I expect and correct but it is really strange that it happens sometimes and not all the time.

I really hope someone could help me out with this as I've been pulling my hair out trying to find out why...

Regards,

Darren
 
I agree. Here's the link: http://jrebel.com/download
 
subject: Program not getting response or failed to send request
 
Similar Threads
Which Design Pattern(s) to use..
Problem re-connecting to server
Front end and server side programming
Finding special characters in a JS string?
IBM HttpServer and websphere Appserver