BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-04-2007, 05:55 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2007
Location: India
Model: 8700g
Carrier: Airtel
Posts: 117
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Client Server application

Please Login to Remove!

Hi,

I am new to BB development and i want to develop a simple client server application. could anyone suggest how should i go about it.can i get any sample code to have a look at.I am very much confused and dont know where to start.I have a few Q in mind
1)what would be the difference between normal j2me client server application and that for BB client server app.
2)how BES/MDS come to picture?
3)which BB specific API's come into picture?

Regards
Meenal
__________________
Thanks
Meenal

Last edited by Meenal : 04-04-2007 at 08:14 AM.
Offline  
Old 04-04-2007, 10:30 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Feb 2007
Model: 9000
Carrier: SFR
Posts: 48
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

What you want to do is to code a standard http client in order to avoid handling TCP connection "issues" (data plan or not/direct connection ...).

TCP connection have three use case.
First you have an adequat data plan which allows a direct tcp connection. Problem with that (in us) is that this data plan could be expensive.
conn=(StreamConnection)Connector.open("socket://testserver:600;deviceside=true");
Second solution (whithout the data plan) your server is on the same network than your bes/mds so that goes straight.
Third solution (whithout the data plan) your server is in another network so you need to ask your admins to open connections.
conn=(StreamConnection)Connector.open("socket://testserver:600;deviceside=false");
please notice the particularity of socket connection where you wants to add "deviceside" parameter.

Just code is as a "standard" java connection except some api are a little bit differents. I believe you can find easily such programs on google.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.