Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

reuse of HTTP connection with POST method

 
jing zhang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I open an HTTP connection from the MIDLet to a Severlet once. And I want to use this connection to exchange several messagges between before I close the connection.
I have a send method which open and close the inputStream when a message is sent, and also a read method in the MIDLet to get the response.
I have a normal Servlet with doPost method inside.
It seems only the first message sent right after the connection setup can arrive at the Servlet, not any of the following messages.
Does anybody here have some experience about this?
I am listening for your advice.
 
jing zhang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is what i think impossible? :roll:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic