Forums Register Login

An internet shop application

+Pie Number of slices to send: Send
Hello Everybody,
I'm very new to Java. It would be nice if anyone could help me build a simple e-com application.
What is in my mind is not a real-time web shop application but a simple client-server program that will run on my small pc.
What I'd like to do is write a multi-threaded server and a client.
Apart from server.java & client.java; I will be having a stock file, say: "stock.txt", whose contents being:
11101X|BMX Cycle Kids|$178.00|12|9
25879A|Tripod Camera|$578.00|4|4
19478P|Acme Road Runner|$318.00|10|8
48221D|GoodGuys Doll Male|$3178.00|2|2
{each item is separated by a pipe(|) symbol. how will i get these loaded into 5 separate columns in the AWT List?}
The headings for the above info will be:
Code, Description, Price, On-Stock, Now Available
-----
The Client:
1. The client part will display a GUI.
2. It should be an Applet based on the AWT classes only in order to allow use on common browsers.
3. An inventory list will be downloaded from the server on startup.
This list will be displayed on the List(AWT) under the above said five labels.
4. Buyers will be able to select items from the list and place them in a shopping cart. They will also be able to remove items from the cart if they change their mind. The total value of the items in the cart will display in the Cart Val field as items are added and removed.
5. When the selection is complete they will then move to the check out and finalise the transaction by entering their personal details, delivery address, credit card number and email address into a second frame that appears. The customer will press a �Commit� button to finalise the sale.
6. When the sale is complete the customer order will be transmitted to the server program.
-----
The server
1. The server program will be multi-threaded to support multiple clients.
2. It can be a character based application.
3. As each client connects the server will transmit the current inventory to the client program where it will be displayed in a list. The inventory is in the text file �stock.txt� which can be loaded to the server on first use. After that the inventory should be saved using Object serialization.
4. The server will adjust the inventory by reducing the number of available items to reflect those ordered. Any changes to the inventory must occur in synchronized methods to maintain the integrity of the data base when different clients attempt simultaneous changes. The stock on hand figure will not change until the goods are despatched.
(We will not include a dispatch function in the server, simply because we are not designing this application for web use).
5. When an inventory change occurs, a new inventory will be broadcast to all connected clients.
6. When an order is received an email will be sent by the server to the address given, to acknowledge receipt of the order and advise on the delivery status.
-------------------
Ok friends, this is it; what do you think?
Can u help me build it?
Anticipating your reply.
Regards,
Mary J
+Pie Number of slices to send: Send
Mary Jones,
Please don't post the same question to multiple forums in the Saloon. It just makes it difficult to follow a conversation.
Also, I'm sure Mary Jones is not your real name. While we don't require real display names at JavaRanch, we don't allow obviously fictitious ones either. But you probably noticed that when you registered.
So, Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!
+Pie Number of slices to send: Send
Hmmmm... that sounds suspiciously like a homework assignment...

You would be doing yourself a lot more good by attempting to do this yourself. It's OK to come to the forums and ask a question if you are stuck on a specific point or you are getting an error you can't figure out in your code... it's not OK to just ask people to do your whole assignment for you.
+Pie Number of slices to send: Send
closing this -- please put comments in the original thread here:
https://coderanch.com/t/372094/java/java/simple-com-application
I yam what I yam and that's all that I yam - the great philosopher Popeye. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


Reply locked
This thread has been viewed 944 times.
Similar Threads
An internet shopping application
Simple Internet Shop
An internet shopping Applet
An internet shop application...
Currency Problem + General Advice
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:10:37.