This week's book giveaway is in the Reactive Progamming forum. We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line! See this thread for details.
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?
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!
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.
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.
Catch Ernie! Catch the egg! And catch this tiny ad too: