Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Regular Contributor
Posts: 59
Registered: ‎05-10-2012
My Device: 8800
My Carrier: verizon

network communication via BES, BIS, carrier network

Hello all

 

I have developed an app under BlackBerry JRE v5.0.0 

 

It uses http and sockets.  It uses http to interact with a web service.  It uses sockets to interact with some software on another server because that is a requirement of that software.

 

I've used the following devices for testing during development:

 

Bold 9700    OS v5.0.0.979, carrier AT&T

Curve 8350 OS v5.0.0.973, carrier Verizon

 

Everything was working fine until someone tested with this device:

 

Curve 8530 OS v5.0.0.508, carrier Verizon

Three times I've gotten "IOException:Tunnel failure" and once I've gotten "ForcedStackTraceException" although I suspect that has something to do with the tunnel failure.

In researching this I find there are different things to append (or not append) to the url based on the network connectivity of the device.  Some of them appear to be mutually exclusive like you don't specify anything when using BIS, but WiFi is best used by appending "interface=wifi" and in many cases its best to include "deviceside=ide"

This all has me wondering if I need to code my app to detect the access method available (wifi via BES, BIS or neither) and build custom url's based on that information.

Everything I've read up until now lead me to believe "deviceside=ide" was the "lowest common denominator" and specifying it would allow me to work on the widest variety of devices.  But now I'm unsure and seeking clarity with this post.



 

 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: network communication via BES, BIS, carrier network

Never heard of "deviceside=ide", I thought the only supported ones were defined in this KB article:

http://supportforums.blackberry.com/t5/Java-Development/Different-ways-to-make-an-HTTP-or-socket-con...

 

But for JRE 5.0 and above, I recommend that you forget trying to figure this all out by yourself and instead use ConnectionFactory. Look at the API, if you have any problems working it out, come back to us. 

 

If you do want to go to the trouble of coding your own extensions, then the code from here will help....

http://supportforums.blackberry.com/t5/Java-Development/What-Is-Network-API-alternative-for-legacy-O...

Highlighted
Regular Contributor
Posts: 59
Registered: ‎05-10-2012
My Device: 8800
My Carrier: verizon

Re: network communication via BES, BIS, carrier network

[ Edited ]

My bad, it is deviceside=true