[jboss-cvs] jboss-seam/examples/jee5/booking/resources/META-INF ...

Michael Yuan michael.yuan at jboss.com
Mon Aug 6 23:21:11 EDT 2007


  User: myuan   
  Date: 07/08/06 23:21:11

  Added:       examples/jee5/booking/resources/META-INF    application.xml
                        ejb-jar.xml persistence.xml
  Log:
  re-structure the jee5 directory
  
  Revision  Changes    Path
  1.1      date: 2007/08/07 03:21:11;  author: myuan;  state: Exp;jboss-seam/examples/jee5/booking/resources/META-INF/application.xml
  
  Index: application.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <application xmlns="http://java.sun.com/xml/ns/javaee" 
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd"
               version="5">
               
      <display-name>Seam Booking</display-name>
      
      <module>
          <web>
              <web-uri>jboss-seam-jee5.war</web-uri>
              <context-root>/seam-jee5</context-root>
          </web>
      </module>
      <module>
          <ejb>jboss-seam-jee5.jar</ejb>
      </module>
      <module>
          <ejb>jboss-seam.jar</ejb>
      </module>
  </application>
  
  
  
  1.1      date: 2007/08/07 03:21:11;  author: myuan;  state: Exp;jboss-seam/examples/jee5/booking/resources/META-INF/ejb-jar.xml
  
  Index: ejb-jar.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" 
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
           xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
           version="3.0">
     
     
     <interceptors>
       <interceptor>
         <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
       </interceptor>
     </interceptors>
     
     <assembly-descriptor>
        <interceptor-binding>
           <ejb-name>*</ejb-name>
           <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
        </interceptor-binding>
     </assembly-descriptor>
  
  </ejb-jar>
  
  
  
  1.1      date: 2007/08/07 03:21:11;  author: myuan;  state: Exp;jboss-seam/examples/jee5/booking/resources/META-INF/persistence.xml
  
  Index: 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_1_0.xsd" 
               version="1.0">
     <persistence-unit name="bookingDatabase">
        <provider>org.hibernate.ejb.HibernatePersistence</provider>
        <jta-data-source>jdbc/__default</jta-data-source>
        <properties>
           <!-- The following two properties are for Glassfish -->
           <property name="hibernate.dialect" 
                value="org.hibernate.dialect.DerbyDialect"/>
           <property name="hibernate.transaction.manager_lookup_class" 
              value="org.hibernate.transaction.SunONETransactionManagerLookup"/>
          
                
           <!-- The following three properties are OC4J
           <property name="hibernate.dialect" 
                     value="org.hibernate.dialect.HSQLDialect"/>
           <property name="hibernate.query.factory_class" 
              value="org.hibernate.hql.classic.ClassicQueryTranslatorFactory"/>
           <property name="hibernate.transaction.manager_lookup_class" 
              value="org.hibernate.transaction.OrionTransactionManagerLookup"/>
           -->
           
           <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
           <property name="hibernate.show_sql" value="true"/>
           <property name="hibernate.transaction.flush_before_completion" value="true"/>
           <property name="hibernate.cache.provider_class" 
                value="org.hibernate.cache.HashtableCacheProvider"/>
        </properties>
     </persistence-unit>
  </persistence>
  
  
  



More information about the jboss-cvs-commits mailing list