Search code examples
blackberryjava-melwuit

How to optimize the http-connection in case of Blackberry?


Want to optimize the http-connection in Blackberry(J2ME or LWUIT or RIM).

I am using the connection object this way:- HttpConnection c=(HttpConnection)Connector.open(url);

I thought of using connection pool, but the problem is the url varies.

Optimize- Using the same connection object so that the code works more efficiently


Solution

  • Connector.open doesn't work properly on the blackberry and had inherent issues in LWUIT. CodenameOne's networking layer includes special support for RIM solving networking on that device.