Please enable cookie support in your browser, otherwise some features of this website will not work. Cookies are used only for temporary client identification and destroyed when you quit the browser.
Help

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

  1. Download and install OC4J 11g TP
  2. Go to the jboss-seam/examples/jee5/booking directory
  3. Edit the resources/META-INF/persistence.xml file and comment out the Glassfish properties and un-comment the OC4J properties.
  4. Edit the build.xml file and un-comment the labeled OC4J-related library properties.
  5. In the jboss-seam/examples/jee5/booking directory, type ant to build the example.
  6. Run this command cp ../../seam-gen/lib/hsqldb.jar $ORACLE_HOME/j2ee/home/applib/ to get the hsql drivers into OC4J - it assumes $ORACLE_HOME is set to your OC4J installation directory.
  7. Copy the application cp dist/jboss-seam-jee5.ear $ORACLE_HOME/j2ee/home/applications/ so OC4J can find it.
  8. Adjust the configuration files:
  • Edit $ORACLE_HOME/j2ee/home/config/data-sources.xml file and inside the <data-source> add:
<managed-data-source
   connection-pool-name="jee5-connection-pool"
   jndi-name="jdbc/__default"
   name="jee5-managed-data-source" />
<connection-pool name="jee5-connection-pool">
   <connection-factory
      factory-class="org.hsqldb.jdbcDriver" 
      user="sa"
      password="" 
      url="jdbc:hsqldb:." />
</connection-pool>
  • Edit $ORACLE_HOME/j2ee/home/config/server.xml and inside <application-server> add
<application name="jboss-seam-jee5"
 path="../../home/applications/jboss-seam-jee5.ear"
 parent="default" 
 start="true" />
  • Edit $ORACLE_HOME/j2ee/home/config/default-web-site.xml, and inside <web-site> , add
<web-app application="jboss-seam-jee5"
 name="jboss-seam-jee5" 
 load-on-startup="true"
 root="/seam-jee5" />

Start the OC4J server and point your browser to http://localhost:8888/seam-jee5 and register an account and book some hotels.

For details on the steps here or for more examples on OC4J see the reference guide chapter Seam on OC4J.