24x7Shop.Com

This is a web application used by a company to sell products through internet. Customer can select and place order for a product, which are then delivered to the customer. Upon the delivery of the product customer is expected to pay. This application is based on the concept of what websites like telebrandsindia.com do.

Major Operations

The following are the major operations of this portal:

Technologies and Products used

The following table lists operations and associated objects and files.

Operation Files Associated Objects
Home page home.jsp , listitems.jsp UtilBean
Listing items listitems.jsp UtilBean
Displaying details of item in a category items.jsp UtilBean
Searching for items search.jsp, listitems.jsp UtilBean
Details of an item itemdetails.jsp UtilBean
Placing order ordernow.jsp, placeorder.jsp UtilBean, OrderBean
Modifying or cancelling order orderquery.jsp UtilBean, OrderBean
Subscription subscribe.jsp SubscriberBean, Subscriber EJB
FAQs faqs.xml, faqs.xsl  

The following are the steps to related to be taken to run the existing part of the application :

  1. Download 24x7shop.zip and unzip it into webapps directory of Tomcat installation directory.
  2. Make sure you copy classes111.zip ( after renaming it to classes111.jar) or classes12.jar into WEB-INF/lib directory
  3. Compile javabeans in WEB-INF/classes/shop directory. Run batch file s.bat before compiling javabeans. You may have to make necessary changes to batch file depending on the directory structure of your system.
  4. Also make sure the classpath of Tomcat is changed to include weblogic.jar using setclasspath.cmd in BIN directory of Tomcat. After the change set CLASSPATH in setclasspath.cmd should look like as shown below:
    rem Set standard CLASSPATH
    rem Note that there are no quotes as we do not want to introduce random
    rem quotes into the CLASSPATH
    set CLASSPATH=%JAVA_HOME%\lib\tools.jar;c:\weblogic\weblogic700\server\lib\weblogic.jar
    
  5. Create account shop with password shop in Oracle Database. If you cannot do this, you can still use SCOTT account wiith TIGER password.
  6. Create required tables in Oracle using TABLES.TXT file and also insert some sample data.
  7. Place pictures realated to items added to ITEMS table in 24x7shop/pictures directory. This application uses JPG files.
  8. Make sure Oracle and Tomcat are running.
  9. Start Weblogic Server and create the following
  10. Copy examples.properties file from c:\weblogic\weblogic700\samples\server\src directory of Weblogic server to 24x7shop/suscriber
  11. Build the ejb in 24x7shop/subscriber directory.
  12. Copy subscriber_client.jar from user directory to 24x7shop/WEB-INF/lib
  13. Run the application using the following url:
       http://localhost:8080/24x7shop
     
  14. You should see home page of the application.