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
New Developer
alicack
Posts: 5
Registered: 07-28-2009

Not understanding MDS and SocketConnection

[ Edited ]

Hello all,

 

I am new to Java Development, I am learning to use the SocketConnection. From my understanding, we can add different parameters based on the following WAF (Wireless Access Families) to init our connection such as :

 

WiFi - interface=wifi

DirectTCP - deviceside=true  

MDS - deviceside=false 

 

But there is something I don't understand. For DirectTCP, it provides functions to let me choose my APN (GPRS? EDGE? or Any 3G data technologies) and connect via this interface, but for "MDS" I know that it will connect through the BES server but I don't understand what is the connection method that are used to connect to BES server? Are there any ways to choose the APN or media (GPRS, EDGE, HSPA etc) for MDS connection? Be honest, I am not sure if my fundamental concept is correct, please correct me if I am wrong...

 

Thank you very much. 

Message Edited by alicack on 07-27-2009 11:59 PM
Message Edited by alicack on 07-28-2009 02:30 AM
Please use plain text.
Developer
bikas
Posts: 984
Registered: 02-10-2009

Re: Not understanding MDS and SocketConnection

Go  through this sticky post of peter_strange.

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&thread.id=29103

 

Regards

Bikas

Please use plain text.
New Developer
alicack
Posts: 5
Registered: 07-28-2009

Re: Not understanding MDS and SocketConnection

[ Edited ]

Thank you for your help. 

 

I have read it but I am still not quite understand about MDS

I know that SocketConnection will be made through the BES server (I treat it as a proxy server.), but I wonder how can I specify which connection method (WiFi/GPRS etc) to connect to the BES server?

 

 

Message Edited by alicack on 07-28-2009 02:31 AM
Please use plain text.
Developer
johnbibs
Posts: 903
Registered: 02-07-2009
My Carrier: Globe Telecom

Re: Not understanding MDS and SocketConnection

hey try watching this:

 

http://www.blackberry.com/DevMediaLibrary/view.do?name=NetworkingTransports

 

this made things clearer for me.  

Please use plain text.
New Developer
alicack
Posts: 5
Registered: 07-28-2009

Re: Not understanding MDS and SocketConnection

I have watched this video before, I think it can't answer my question.

 

Can I control what connection methods (GPRS/WiFi/Other 3G technology) to connect MDS ? (or my statement is totally wrong)

Please use plain text.
Developer
simon_hain
Posts: 10,780
Registered: 07-29-2008
My Carrier: O2 Germany

Re: Not understanding MDS and SocketConnection

the blackberry OS is written in c++ (mostly). in java you can not control the most basic level, the parameter you add to a connection url control the underlying framework.
the connection framework has a connection to the BES/MDS you can use. You can not control what type this connection has (grps, wifi...) nor can you get info about it.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

peter_strange wrote:
"This process should happen traumatically for you in both JDE and Eclipse."
Please use plain text.
Developer
johnbibs
Posts: 903
Registered: 02-07-2009
My Carrier: Globe Telecom

Re: Not understanding MDS and SocketConnection

These are the network transport to choose from:

1. wifi

2. direct TCP

3. BES/MDS

4. WAP

5. BIS 

 

BES/MDS is one way of connecting to an application server or webserver. and direct TCP(where you set the APN) is a different thing. so basically it's either you connect to wifi, connect using direct tcp(apn) or connect to BES/MDS etc..

Please use plain text.