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

BlackBerry Development Advisor
Posts: 15,766
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Facing issue using ConnectionFactory class,although I used sample code from BB site

This makes sense if you are using a direct TCP connection and require your connections to go through a proxy server.  This type of connection goes directly from the BlackBerry smartphone simulator to the destination server and does not use the MDS-CS Simulator.  Direct TCP connections do not support the use of a proxy server.


You can try to manually use deviceside=false instead of ConnectionFactory to test this out.  Or change the preferred order of ConnectionFactory to favor an MDS connection over a direct TCP one.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker