Search code examples
java-mehttpconnection

Persistent HTTP Connection in J2me


I am creating Java ME Application, its frequently get data from server with 5 minute gap. Can I use persistent HTTP connection for each request?

Can I use same connection for each request?


Solution

  • Yeah, sure you can.

    However, if you are going to have a server that will be handling requests from a large number of devices, you would probably NOT want persistent connections.