Help coderanch get a
new server
by contributing to the fundraiser
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Remote DB for storing Landmark details

 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hii
i am developing a project using j2me that
i)retrieves the current location of the device
ii) calculates distance beteen current location and any two locations entered by the user
ii}shows the nearest restaurents(or whatever) from the curent location.

am using jsr179; location api for this purpose, everything is working fine am getting results positively; am using RMS to store Landmark details, but eventually i would want to update my database and its size may increase so RMS doesnt look like feasable soultion... so i need to access remote database....which am not sure how to do...i read many posts on it but nothing is clear...so plz help
 
pallavi utukuri
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well problem solved.....Thanks
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So what was your solution?

Mark
 
pallavi utukuri
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well solution is to access the database from a servlet ......used simple tomcat server.....oracle database...and midlet sends request to servlet (used my IP address instead of localhost) and the servlet connects to the database....
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Exactly. That is the best way for a Device to get Database information, access to app server stuff. It is making the Servlet a Web Service for the Cell Phone. The toughest think is that the message is always a byte array.

Mark
 
pallavi utukuri
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yaa thats true.....but as i need just to send and receive couple of fields to access database ....soo its quite simple code to make the job done
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic