Customer Support System

This application uses all major components of J2EE. It was used as project in J2EE batches that started on Jan 20th, 2004.

This application contains two parts - one for customer and another for customer support team.

Operations that can be performed by customer

Operations related to customer support team

Operations, files and related objects

The following table lists operations and associated objects and files.

Operation Files Related Objects
Login login.html, login.jsp Customer javabean
Home Page home.jsp Customer JavaBean
Updation of Customer profile updateprofile.jsp Customer JavaBean
Query Knowledge Base Querykb.jsp Customer javabean
List of Current Complaints listcomplaints.jsp Customer javabean
Add a complaint complaint.html, addcompliant.jsp Customer javabean, Complaint EJB, complaints message topic.
logout logout.jsp  

The following programs are related to customer support team.

Operation Files Related Objects
A Swing application that displays a window when a complaint arrives Messenger.java complaints message topic
A Swing application to send mails to all registered customers SendMails.java JavaMail

Installation Steps

The following are the steps to install this application in your system :

  1. Download cs.zip and unzip it into webapps directory of Tomcat installation directory.
  2. Make sure you include Oracle driver classes in the classpath of Tomcat - use setClassPath.Bat file for this or copy classes12.jar( or classses111.zip) file into WEB-INF/lib directory.
  3. Create account custsup with password custsup in Oracle.
  4. Create required tables in Oracle using TABLES.SQL file.
  5. Create a connection pool in Weblogic for user custsup/custsup.
  6. Create a datasource with name - oracle and JNDI name oracle.
  7. Create a message topic - complaints.
  8. Build ejb in complaint directory - complaint bean is a stateless session bean. Before you build EJB copy file EXAMPLES.PROPERTIES from SRC directory of examples into complaint directory.
  9. Copy comlaint_client.jar file from clientclasses directory of Weblogic to /WEB-INF/lib of cs application.
  10. Make sure Oracle, Weblogic Server and Tomcat are running.
  11. Run the application using the following url:
       http://localhost:8080/cs
     
  12. You should see login page of the application.