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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Administrator
MSohm
Posts: 12,957
Registered: ‎07-09-2008
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.
Found a bug? Report it using the Issue Tracker
Please use plain text.