Mutual Funds Tracker

This is a web application used by investors to keep track of their investments in Mutual Funds. This application provides information regarding Net Asset Value (NAV) of each mutual fund scheme of all companies. Each investor can register, login, add details of his/her investment and get details regarding his details.

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
Login Page login.jsp InvestorBean
Displaing Investments Details portfolio.jsp InvestorBean
Adding units of a scheme funds.jsp, schemes.jsp, add.jsp, addfinal.jsp InvestorBean, SchemeBean
Sale of units sale.jsp, salefinal.jsp InvestorBean, SchemeBean
Deleting Transaction deletetransaction.jsp, deletetransactionfinal.jsp InvestorBean , TransactionBean
Adding Email Alerts emailalerts.jsp, emailalertsfinal.jsp InvestorBean , EmailAlertBean
Deleteing Email Alerts deletealert.jsp, deletealertfinal.jsp InvestorBean, EmailAlertBean
Change Password changepassword.jsp InvestorBean
Displaying dividends information dividends.jsp InvestorBean
Registering as new user newuser.html, newuser.jsp Investor EJB - Stateless Session Bean
Forgot password forgotpassword.jsp  

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

  1. Download mft.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/mft 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. Create account mft with password mft in Oracle Database using the following command after you log in as SYSTEM or INTERNAL.
       create user mft identified by mft;
       grant connect, resource to mft;
       
  5. Create required tables in Oracle using TABLES.TXT file and also insert some sample data.
  6. Copy classes111.jar (renamed classes111.zip) or classes12.jar into JBOSS_HOME\server\default\lib directory.
  7. Start JBOSS 4.x
  8. Build ejb in investorejb directory of mft directory using build.bat. Make necessary changes to build.bat before you run it.
  9. Make sure EJB is deployed sucessfully.
  10. Copy investor.jar into WEB-INF/lib directory of mft
  11. Copy jbossall-client.jar from JBOSS_HOME/client into common/lib directory of Tomcat.
  12. Copy oracle-ds.xml from JBOSS_HOME\docs\examples\jca into JBOSS_HOME\server\default\deploy directory.
  13. Add a new local-tx-datasource as follows under datasources tag as shown below. Change values according to your system settings.
      <local-tx-datasource>
          <jndi-name>OracleMFT</jndi-name>
          <connection-url>jdbc:oracle:thin:@localhost:1521:oracle8i</connection-url>
          <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
          <user-name>mft</user-name>
          <password>mft</password>
          <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
            <metadata>
               <type-mapping>Oracle8</type-mapping>
            </metadata>
      </local-tx-datasource>
    
  14. Start Tomcat
  15. Run the application using the following url:
       http://localhost:8080/mft/login.jsp
     
  16. You should see login page of the application.

Deploying Web Application In Tomcat of JBoss

The following procedure explains how to deploy a web application MFT, developed with Standalone Tomcat, into Tomcat that is embeded into JBoss. This eliminates the need to use two servers - JBOSS and TOMCAT. Instead by starting JBOSS, we can use Web applications and related EJBs.