Running the OnlineOrders Sample

Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents

OnlineOrders is a sample Business Components for Java application with a JSP client. To run the OnlineOrders application:

  1. Edit your <oc4j_home>/config/data-sources.xml file.

  2. Add the following tag inside the <data-sources> tag:

    <data-source
        class="com.evermind.sql.DriverManagerDataSource"
        name="OnlineOrders"
        location="OnlineOrdersCoreDS"
        xa-location="jdbc/xa/OnlineOrdersXADS"
        ejb-location="OnlineOrdersDS"
        connection-driver="oracle.jdbc.driver.OracleDriver"
        username="scott"
        password="tiger"
        url="jdbc:oracle:thin:@localhost:1521:orcl"
        inactivity-timeout="30"
    />
  3. Find the attribute url="jdbc:oracle:thin:@localhost:1521:ORCL".
  4. Save and close the file.
  5. Navigate to /onlineorders/main.jsp to run the sample application.

 


Oracle
Copyright © 2002 Oracle Corporation.

All Rights Reserved.