This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Help with my J2ME Project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Help with my J2ME Project" Watch "Help with my J2ME Project" New topic
Author

Help with my J2ME Project

M Jay
Ranch Hand

Joined: Sep 21, 2004
Posts: 66
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


SCJP J2SE 1.4<br />SCBCD J2EE 1.3
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
M Jay
Ranch Hand

Joined: Sep 21, 2004
Posts: 66
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
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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
Salman Faraz
Greenhorn

Joined: Feb 14, 2005
Posts: 28
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with my J2ME Project
 
Similar Threads
Regarding J2ME Polish & System properties
j2me Emulators
requirement for development of j2me application
J2ME + Wireless development?
EclipseMe for J2ME plug-in in Eclipse