Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Order management system in j2me application

 
Priyanka Gawada
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 1604
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).

Specifically:
XML = Web Services JSR-172.
SMS = Wireless Networking JSR-205.
Optionally supported: Payment JSR-229
 
Priyanka Gawada
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well safe and secure with Java.. But I am a newbie here because I know a order management system in other platform.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic