• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help with my J2ME Project

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I need a bit of advice on my university project for which I will be using J2ME. I am designing an application that should run on a mobile device, for example an IPAQ. This application would then be used to wirelessly submit student grades to a server which stores them on a database. I am thinking of using Bluetooth as the communication protocol, would that be a good idea? If not what is the better way of doing this? I've been told that WiFi would be better. Could someone tell me the advantages and disadvantages of each one and a recommendation for which one I should use?

Many Thanks in advance
 
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
Well you must realize that Bluetooth is short range, about 10 meters. So you would have to be in the same room as the computer that you are transferring. Even WiFi has its distance limitations.

Do you have to code the server side? Do you have any constraints about what can be on the Server.

Personally I think you will find it easier to use HTTP. the Server being a web server with a Servlet that takes the grades.

Also, I wanted to thank you for asking for advice rather than asking us to do your homework for you.

Mark
 
M Jay
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply, I promise I will do my homework myself!!!

Yes, I am going to code the server side myself, most probably exposing it as a Web Service (or do u think it shouldn't be?), then I will need to develop a mobile app to run on an IPAQ that would be used as a grade entry tool. You still didn't tell me which one would be better to use? which one would be easier to implement ...etc

I will also be designing a web application client that would be used to display grade reports with a browser. The server side app will generate those reports and the web app will only be used for presenetation, No logic will be in the Web App. This is my initial design thought and if you think anything can be done better please let me know!

Your help and advice is much appreciated.
 
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
OK, you definitely want to use the HTTPConnection in J2ME to connect to a Servlet you create on the Web Server. This Servlet will take the values that you get from the device, and put it into a database of some kind, which your other Servlet/JSP will display the grades to the web page.

That is the simplest way. you are using the Servlet as a "Web Service" for getting the grades from the phone.

And yes keeping the logic out of the Web App is the way to go. Also the Servlet that you are using as a Web Service, use it just to get the values out of the HttpServletRequest, then pass the values into the logic classes.

Have fun.

Mark
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
J2ME running on the front end and Servlets running on the back end web server which could be Apache Tomcat or some other web server,I think Tomcat would be a good choice,this servlet would than be connected to some Database server which could be mySQL,SQL Server etc,the request would be send from J2ME application to servlet using the HTTP protocol.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic