Shail Adi
Shail Adi

Reputation: 1510

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

Upvotes: 2

Views: 272

Answers (2)

neb1
neb1

Reputation: 209

In my application i add the requast to Queue of class Network Manager that responsible on connection in Lwuit (I can't create http connect,all done by lwuit). about optmaize you can use unsynchronizrd function that will be load the new connection on the instance only if the respone will recievd or that connection be finishe, But i think that is "recipe" for problems.

Upvotes: 0

Shai Almog
Shai Almog

Reputation: 52725

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.

Upvotes: 3

Related Questions