File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes J2ME Socket to J2SE Socket Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "J2ME Socket to J2SE Socket" Watch "J2ME Socket to J2SE Socket" New topic
Author

J2ME Socket to J2SE Socket

Koh Khai Huat
Ranch Hand

Joined: Aug 05, 2005
Posts: 100
Hi guys

I am doing an application on a Mobile phone which is going to talk to a J2SE application acting as an server Using Socket Connection.....

I am having a problem that My mobile phone application can not write to the Server but it can receive data from the server......

The server is using bufferReader and got the Mobile App i am using a InputStream ..... is there other way for them to talk to each other...

thanks in advance guy thanks got your time.

regards
KKH


if (!WorkHard){
System.out.println("Fail!!!");
}
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

For starters, you'll need an output stream to talk to the server. (Input streams can only read.) It's not hard to do, but it would explain why you can read and not write.


Theodore Jonathan Casser
SCJP/SCSNI/SCBCD/SCWCD/SCDJWS/SCMAD/SCEA/MCTS/MCPD... and so many more letters than you can shake a stick at!
Koh Khai Huat
Ranch Hand

Joined: Aug 05, 2005
Posts: 100
Hi Theodore Casser,

Thanks for the reply i have slove the problem alr thanks for yr help

regards
KKH
 
jQuery in Action, 2nd edition
 
subject: J2ME Socket to J2SE Socket
 
Similar Threads
Can this be done with JNLP Mobile app-Browser communication ???
Chat Application
Browser Mobile Communication
running application in C on mobile phone with Android
Sending Images from PC to mobile