File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Order management system in j2me application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Order management system in j2me application" Watch "Order management system in j2me application" New topic

Order management system in j2me application

Priyanka Gawada

Joined: May 08, 2012
Posts: 12
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.
Swastik Dey

Joined: Jan 08, 2009
Posts: 1584

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.

Priyanka Gawada

Joined: May 08, 2012
Posts: 12
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.
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
You should read up on JSR 248: Mobile Service Architecture.

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
Priyanka Gawada

Joined: May 08, 2012
Posts: 12
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
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
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.

Some links:
JSR 229: Payment API (API download page).

Payment API: JSR 229 (Nokia).
27 JSR 229: Payment API Support (a page from the Java ME SDK help file).
Harris Li

Joined: Oct 27, 2013
Posts: 1
Well safe and secure with Java.. But I am a newbie here because I know a order management system in other platform.

Orderhive: India's 1st Multichannel Order Management Software And Inventory Management System
I agree. Here's the link:
subject: Order management system in j2me application
It's not a secret anymore!