- Download and install OC4J 11g TP
- Go to the jboss-seam/examples/jee5/booking directory
- Edit the resources/META-INF/persistence.xml file and comment out the Glassfish properties and un-comment the OC4J properties.
- Edit the build.xml file and un-comment the labeled OC4J-related library properties.
- In the jboss-seam/examples/jee5/booking directory, type ant to build the example.
- 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.
- Copy the application cp dist/jboss-seam-jee5.ear $ORACLE_HOME/j2ee/home/applications/ so OC4J can find it.
- 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.
Created: 12. Feb 2008, 12:19 America/New_York (Christian Bauer)
Last Modified: 19. Sep 2011, 06:48 America/New_York (Shane Bryzak)