Mobile Audience Survey System (MASS)This project was first developed during my internship at Motorola Brazil Test Center, where I had to explore the integration of J2EE using Tomcat and J2ME. I chose to use serialized objects in XML produced by the J2EE server and consumed by any J2ME MIDP 1.0 client running on a cellphone device. One of the most interesting problems was that such device offers a very limited environment for the development of XML consumption. That's when I found out the application of XML Pull-Parser very useful.M.A.S.S. enables people to make mobile surveys using a wireless device with MIDP 1.0 enabled. There are 2 midlets on this test build: The M.A.S.S. Client and Manager.
This project is a result of the J2ME Classes from the CIn-Motorola Internship program, that took place on July, 2004. Special Thanks to Prof. Paulo Borba for the original classes and all the motorolans.
Marcello de Sales Jr. |
|
|
Different use cases were implemented to exercise the data exchange from the J2EE and the J2ME Java applications. The project was documented using Object-Oriented Analysis and Design using UML. Check the UML Documentation. You can also view a sample of the source-code. Creating a new Session FormWhen the user accesses the new Session Form, the server sends an XML message signing that there are no new session and he/she is ready to create a new session.
Request for Session CreationWhen the user confirms the creation in the client-side, the J2EE middleware receives the serialized XML containing the information from the POJO. Then, it persists the information in the database and confirms the creation of the session by sending an acknowledge message back to the client.
Viewing the current session resultsWhile the votes for the current session are being entered by different users, the client can request the current values.
Viewing all available sessions in the serverAs different sessions are created, the server retains the list of existing sessions. The client may view the list of existing sessions by requesting the list.
Closing the current sessionThe administrator/professor/manager may choose to close the session. This action closes the session and no user may enter their votes for that given session anymore.
|