What protocol is used under a Socket in J2ME?

Posted on 2006-05-26
Medium Priority
Last Modified: 2008-03-03

Hello, I am trying to understand various wireless communication protocols.

On J2SE, when I use a socket to communicate, the underlying protocol is TCP/IP.

On J2ME, when I use a socket to communicate, what is the underlying protocol?  Specifically, which layers of the WAP protocol stack are used?

Now, if I open an IMPS J2ME client on my wireless phone to chat with a friend on his PC, what happens?  I thought IMPS is supposed to replace the WAP protocol stack.  Is that correct?  Where does IMPS stand relative to WAP?

What if I open a native IMPS client on my wireless phone?  Does it behave exactly the same way as the J2ME client?


Question by:anonp
  • 2
LVL 13

Accepted Solution

bglodde earned 500 total points
ID: 16891272
The Open Mobile Alliance page is a great resource to facilitate further understanding of these protocols.
Specs: http://www.openmobilealliance.org/index.html

When you open a socket in J2ME, you use the same protocol as J2SE, TCP/IP.

With IMPS (Instant Messaging and Presence Service) uses CSP (Client server protocol), but it is using a push mechanism rather than polling. All of this wonderful stuff is built on top of TCP/IP.

WAP is different. Similar to IMPS, WAP is capable of presence services and can do push with a proxy. WAP 2.0 does away with the proxy (built on HTTP1.1). WAP is built on top of HTTP, which - at it's root - is TCP/IP.
Specs: http://www.wapforum.org/what/WAPWhite_Paper1.pdf  <-- this paper has the WAP stack at the bottom of the page and is very useful in understanding

More about TCP/IP: http://en.wikipedia.org/wiki/TCP/IP

Hope this info helps!

Author Comment

ID: 16892812

WAP is not built on top of HTTP.  WAP is built to parallel HTTP.  WAP for wireless and HTTP for wired.  HTTP is not used for the wireless half of a web access from a cell phone.

Is TCP/IP available when I am using my cell phone?  Can you link to the article that claims that?  I thought TCP/IP is only for the wired half of a cell phone web access.

The information that you provide seems to be inaccurate...


Author Comment

ID: 16892842

Actually, I was wrong. Thx

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Summer 2017 Scholarship Winners have been announced!
What monsters are hiding in your child's room? In this article I will share with you a tech horror story that could happen to anyone, along with some tips on how you can prevent it from happening to you.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question