posted 12 years ago
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
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
[ October 11, 2005: Message edited by: Mark Spritzler ]
I'm a new J2ME developer, that knows a bit about J2ME, and less about J2SE
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
[ October 11, 2005: Message edited by: Mark Spritzler ]
posted 12 years ago
This link has an artice on the Generic Connection Framework and should tell you how to do the network connection.
Java.sun.com has lots of technical articles to help on the J2ME side.
Mark
Java.sun.com has lots of technical articles to help on the J2ME side.
Mark
Elías Turbay
Ranch Hand
Posts: 35
Elías Turbay
Ranch Hand
Posts: 35
posted 12 years ago
How about using the Socket class in J2SE? What you basically need to do is create a J2SE Thread that is a Daemon thread, which means it is always running, waiting/listening to a particular port using the Socket class. Then the J2ME device connects to that port and now you have connection.
Mark

Mark

It is sorta covered in the JavaRanch Style Guide. |