I want to design an order management system as mobile phone application using J2ME.
Modules/Flow: Placing an order->payments->confirmation through SMS.
Kindly help me whether the flow is correct.
Also, where I can fit web service in the project. How to design bill payment module in j2ME application.
If possible, provide me with the reference of some web site which I can be used for designing such a application.
As per my understanding you need to take care of few things here.
1. Design a recordstore which stores the required details along with one more field as sent_to_server
2. As soon as an order is placed, try to invoke the web service to send the data to server.
3. If the sending is successful mark the sent_to_server field for that record to true or else false. This may happen because at the time sending it your phone doesn't have a valid network connection or may be something is wrong with the server or some other kind of network problem.
4. Keep in export button which fetches the record where sent_to_server is false and tries to send again.
Joined: May 08, 2012
Thanks for the response.
I have started developing the J2ME application.
Designed the interface using J2ME --> Displays a menu -> for placing , deleting, and search the order ->
Placing the order -> flow is: product categories -> user detail -> selection of products in selected category -> asking quantity -> Generating bill
Received resultset in servlet and sending as XML to J2ME code which parses the data and stores in the Vector.
So, basically J2ME with XML <----> Servlet <---> database.
Also, I am planning to design payment module where I am thinking to use Web service which will validate the details and give user message for successful payment.
Kindly, tell me whether the flow is correct.
Recordset not used, as far as I understand, it will help me only to store on mobile device, then I need to synchronize that with the database for inserting and receiving data from database.
Actually there is a graphic here: JAVA MOBILE - See API References (The bottom image under the section "MSA OVERVIEW," not the "OTHER JSRS" one in the middle of the page with red color in it).
XML = Web Services JSR-172.
SMS = Wireless Networking JSR-205.
Optionally supported: Payment JSR-229
Joined: May 08, 2012
Thanks for the reply.
I had referred to Payment API.
But not got any implementation of the same for j2me code.
It seems still not being used much.
Walter Gabrielsen Iii
Joined: Apr 09, 2011
That's odd I didn't find much about the Payment api and it appears to have been removed from the MSA 1.1 file I'm referencing. You should be able to test for the Payment API using the java.lang.System.getProperty() method with this property: "microedition.payment.version" which shouldn't return null unless that phone doesn't support the Payment API.