Hi ! I have made a simple network application using j2me. I'm using HttpConnection class for establishing the network connection. Basically it just sends a string to the server and fetches back a string from the server. I'm using a javaservlet on Apache/Tomcat server. The application works fine using emulator and remote server. It takes around 3 seconds for the server to send back the response( when using emulator). 1) I have a java compliant cell phone and a GPRS network connection. But my application does not work on the device. I do not get any response from the server. What can be the possible reasons ?
2) Secondly how much time do you think it should take for the server to send back the response ( a string) to the client when using cell-phone and wireless network. Regards Danish [ June 10, 2003: Message edited by: Danish Shaukat ]
Hi, I had a similar case... the problem was that the GPRS-Internet gateway server did not allow communication on port 8090... and my tomcat server was listening on that port... Maybe check that with your service provider? Yours J.
Does the server show any sign that it received the message? Have you tried to simplify the problem? Can you just send a message to the server and see it appear without sending a reply? Just trying to determine exactly (or as close as possible) what the problem is and where it is most likely happening.
SCJP, SCJD, SCEA 5 "Any sufficiently analyzed magic is indistinguishable from science!" Agatha Heterodyne (Girl Genius)
Hi ! Sorry folks, i could not answer your questions. Actually the cell-phone is with my co-worker who is in another country. Anyway i found out that the URL was being truncated( saw the server logs). For this reason the servlet was not running. The cell-phone ( a Samsung one) was truncating the URL. So now i am using Post method instead of Get and it works fine. Sometimes things work perfectly well on emulators. But when you deploy the app on device many silly things come up. Regards Danish [ June 25, 2003: Message edited by: Danish Shaukat ]