This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Local Connection from Phone to PC  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
wrangler
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!