10-24-2008 03:28 PM
Hi I have installed Blackberry JDE Eclipse Plug-in successfully. My test app works great on simulator until it tried to open a HTTP connection to a URL (either localhost or a real web address like www.google.com):
Below is the code I used:
StreamConnection s = null;
s = (StreamConnection)Connector.open(getUrl());
HttpConnection httpConn = (HttpConnection)s;
int status = httpConn.getResponseCode();
So my question is how to configure the simulator's setting so that it can open connection to network.
Solved! Go to Solution.
10-24-2008 03:46 PM
Have you also started the MDS Simulator? If so, do you see activity in the window when you make a connection?
Are you using the deviceside parameter? If so, what is it set to? Do you have a proxy server in your environment?
10-24-2008 04:35 PM
Thanks for your fast response.
I am new to Blackberry development. I want to migrate a current Java app to BB plateform. Currently we are using HTTP to exchange data between java client and server (which is running on weblogic server).
My questions are:
(1) how to start MDS simulator? Do I need to download MDS or it comes with Elcipse plug-in?
(2) what is deviceside parameter, do I need one for HTTP connection to my weblogic server?
(3) If we deploy our application, do we need to set up a MDS at server side?
10-27-2008 10:21 AM
The BlackBerry MDS Simulator is packaged and installed with the Eclipse plug-in and can also be downloaded separately if needed. You can configure to launch the MDS Simulator along with your device simulator under the Debug/Run Dialog. For more details on these steps, check the Eclipse-Plug-in for the following topic Test a BlackBerry Application that uses an HTTP connection.
To understand the deviceside parameter and information on network gateways, please see the following resources:
DB-00396: What Is - Different ways to make an HTTP or socket connection
Network Transports Video:
Managing Wireless Data Transport on BlackBerry - Part 1
03-04-2009 12:25 PM
> (1) how to start MDS simulator? Do I need to download MDS or it comes with Eclipse plug-in?
MDS installs with the Eclipse plugin, but the startup script wouldn't run for me. For version 4.5, you'll find 'run.bat' in eclipse-3.4\plugins\net.rim.eide.componentpack4.5.