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:
   name="jee5-managed-data-source" />
<connection-pool name="jee5-connection-pool">
      url="jdbc:hsqldb:." />
  • Edit $ORACLE_HOME/j2ee/home/config/server.xml and inside <application-server> add
<application name="jboss-seam-jee5"
 start="true" />
  • Edit $ORACLE_HOME/j2ee/home/config/default-web-site.xml, and inside <web-site> , add
<web-app application="jboss-seam-jee5"
 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.

03. Mar 2008, 18:15 America/New_York | Link
Randall Burt

It seems that Seam EJB's must implement serializable to work in OC4J because 11g complains that they do not comply with the EJB 2 spec. Why they would need to comply with an older spec is beyond me at this point.

13. Jun 2008, 21:28 America/New_York | Link

Is there any work being done to create a OC4J v10 guide for deploying the JEE5 examples?

09. Jul 2008, 14:21 America/New_York | Link

See Jason's blog for how to deploy on OC4J 10. If someone wants to write it up as docbook for inclusion in the Seam ref manual, see JBSEAM-2645


Read about how to report a bug.