Resin Documentationapp server |
seam
Steps required to run the seam-booking example. Software Prerequisites:
Prepare seam-booking example
WEB-INF/classes/META-INF/persistence.xml<?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" version="2.0"> <persistence-unit name="booking"> <jta-data-source>java:comp/env/jdbc/booking</jta-data-source> <properties> <property name="eclipselink.ddl-generation" value="drop-and-create-tables"/> <property name="eclipselink.ddl-generation.output-mode" value="database"/> </properties> </persistence-unit> </persistence> WEB-INF/resin-web.xml<web-app xmlns="http://caucho.com/ns/resin"> <database> <jndi-name>jdbc/booking</jndi-name> <driver type="org.hsqldb.jdbc.JDBCDriver"> <url>jdbc:hsqldb:file:/tmp/seambooking</url> <user>SA</user> <password></password> </driver> <prepared-statement-cache-size>8</prepared-statement-cache-size> <max-connections>8</max-connections> <max-idle-time>30s</max-idle-time> <spy/> </database> </web-app> Copy seam-3.1.0-Final/lib jar files to Resin's webapp-jars directory
|