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

Local Connection from Phone to PC

Femi Alukoo
Greenhorn

Joined: Jul 06, 2004
Posts: 2
I want to connect to a servlet from a midlet which is running on a Nokia 6600 phone which is connected via Infrared to a Laptop.Tomcat is running on this Laptop but the midlet can't seem to connect to the servlet despite the infrared connection between the two. I am actually a new j2me developer so i dont know if i am missing something somewhere.
Thanks
James Reilly
wrangler
Ranch Hand

Joined: Oct 01, 2003
Posts: 30
If you use HTTP as the communication protocol between
your MIDlet and servlet, then you need to use a network
binding (or access point) that supports HTTP (Note: on both ends).
GPRS via an appropriate carrier/network operator is one example.

This assumes your servlet is visible on a web server someplace
on the public Internet.
[ July 06, 2004: Message edited by: James Reilly ]
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
IR is a serial connection. It cannot get to the TCP/IP ports on your laptop. This has nothing to do with J2ME though. You need to connect via GPRS to get to a servlet.


Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
Elías Turbay
Ranch Hand

Joined: Oct 06, 2005
Posts: 35

IR is a serial connection. It cannot get to the TCP/IP ports on your laptop. This has nothing to do with J2ME though. You need to connect via GPRS to get to a servlet.


Hi, want to know how can I develop a Java app that send data, via Serial connection, to a J2ME app (a MIDlet that use this data to load a RecordStore).
I'm a new J2ME developer, that knows a bit about J2ME, and less about J2SE
Elías Turbay
Ranch Hand

Joined: Oct 06, 2005
Posts: 35
Hi, anyone there can help me???

Mainly I need help in the Java app running in the PC.
This app have to get the data from a MySQL Server (aprox 4000 records) and send the data via Serial connection to a Phone connected to the COM port.
This Phone must be running a MIDlet that receives this data to load a RecordStore.
I know how to do the last part... But I don't know how start with the Java App for the PC, and how to synchronize and serialize the data from MySQL to the MIDlet.

PD: I never used JDBC to connect to a DB Server... Where I can find information to do that?

From already thank you very much
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Local Connection from Phone to PC
 
Similar Threads
deploy midlet
Connecting to server via IRDA port
How to use infrared to extract midlet from mobile phone to PC?
Phone to PC Connection
making a midlet on phone to access a servlet on pc