Affiliate Programs
 
Search affiliate programs for: 
Affiliate Categories
» Affiliate Networks
» Ad Networks
» 2 Tier Programs
» Pay Per Sale
» Pay Per Lead
» Residual Income
» Datafeeds
» Multi Tier Programs
» Business Opps
» Other Programs

Newsletter
Get newly added affiliate programs by email. Enter your email here:
Article Categories
» Affiliate Marketing
» Business
» Ecommerce
» Hosting
» Marketing
» Sales
» Web Designing
» Webmasters
» SEO & Promotion
» Working At Home
» Other Articles
» Affiliate Glossary


Go Back   AffiliateSeeking Forum > Website Creation, Design & Maintenance > Programming > JavaScript

JavaScript Discuss about JavaScript problems you are having or help others with their JavaScript issues.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-01-2013, 08:56 AM
Boby Smith Boby Smith is offline
Senior Member
 
Join Date: Dec 2011
Location: Ahmedabad(India)
Posts: 126
Boby Smith is on a distinguished road
Default J2EE inventory management lock Product quantity

We are trying to develop web e-commerce application using struts 1.2 on Jboss 4.2.+MySQL DB 5.1 which needs to be clustered. Need guidance before we start coding. We are stuck up.
We have a Product table where we are entering the quantity , A Order table where we are storing the Customer order & Product details related to add to cart functionality. There is a requirement which states that if a customer adds a Product to shopping cart with number of quantity, its should reduce from the Product table (the idea being to so that next customer can get the available quantity product). So how do we handle this in web e.g: A product total quantity is 15, Customer A comes & books for 12 , parallel Customer B comes & books for 6. How to lock & handle for the other scenario

1) So how do we lock product quantity this for each customer in web application (also clustered, synchronization may not work in clustered env as I think JVM would be different), Any other way?

2) what if the customer does not complete the shopping functionality, I mean we need to revert back the quantity from shopping cart to Product table?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 04:07 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0
© 2004-2011 AffiliateSeeking. All rights reserved.