aspose file tools
The moose likes Java Micro Edition and the fly likes Chat Application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply Bookmark "Chat Application" Watch "Chat Application" New topic
Author

Chat Application

Girish Nagaraj
Ranch Hand

Joined: Apr 19, 2006
Posts: 153
I wish to develop a mobile chat application...
Well Quick overview is here:

1) Their will be n number of mobile phone users chatting with each other, and a single web server which coordinates chatting.

2) All interactions between mobile phone & web server will be through HTTP protocol.

3) A mobile phone can talk to another mobile phone only through web server in between.

As we all know HTTP is a request response protocol.
Assume that user1 sends a chat message to user2, Now How should web server forward that message to user2(When user2 has not requested anything)?

One solution I can think of is: Send request to web server from all the mobile phones periodically(say once every minute), then web server can find if their is any message for that user and respond accordingly.

How feasible is my solution?
If you have an other solution please do suggest?

Thanks..
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

Have you perhaps considered the Jabber protocol? It might be easier than trying to code something from the ground-up, especially since I do believe there are Jabber-protocol chat clients out there for Java ME...

Just a thought.


Theodore Jonathan Casser
SCJP/SCSNI/SCBCD/SCWCD/SCDJWS/SCMAD/SCEA/MCTS/MCPD... and so many more letters than you can shake a stick at!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Chat Application
 
Similar Threads
Cannot Display the message in the console
wish to develop a mobile chat application
WAP Gateway
Inspiration and help needed
Instant Messaging using JMS with the help of JSP and Servlets