1 Reply Latest reply on May 10, 2010 9:29 PM by ben abdallah Firas

    configure Seam managed persistence context to weblogic 11g

    ben abdallah Firas Newbie

      how can i configure Seam managed persistence context to weblogic 11g .


      the configuration for jboss is :


      persistance.xml


       <persistence-unit name="ComexWeb">
            <provider>org.hibernate.ejb.HibernatePersistence</provider>
            <jta-data-source>java:/ComexWebDatasourceTest</jta-data-source>
            <properties>
                <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle9iDialect"/>
               <property name="hibernate.hbm2ddl.auto" value="update"/>
               <property name="hibernate.show_sql" value="true"/>
               <property name="hibernate.format_sql" value="true"/>
               <property name="jboss.entity.manager.factory.jndi.name" value="java:/ComexWebEntityManagerFactory"/>
               <property name="hibernate.default_schema" value="CITI"/>
            </properties>
         </persistence-unit>



      componenet.xml




           <!-- Seam-managed persistence context (@In (create=true)  EntityManager entityManager;) -->
                <component name="em"
                class="org.jboss.seam.persistence.ManagedPersistenceContext">
          <property name="persistenceUnitJndiName">java:/ComexWebEntityManagerFactory</property>
      </component>  




      i don t find the equivalent of jboss.entity.manager.factory.jndi.name to the weblogic or if he have any other configuration te configure the entitymanagerfactory



      persistance.xml in weblogic :




      <persistence-unit name="ComexWeb">
            <provider>org.hibernate.ejb.HibernatePersistence</provider>
            <jta-data-source>jdbc:/ComexWebDatasourceTest</jta-data-source>
            <properties>
                <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle9iDialect"/>
               <property name="hibernate.hbm2ddl.auto" value="update"/>
               <property name="hibernate.show_sql" value="true"/>
               <property name="hibernate.format_sql" value="true"/>
               <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
               <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.WeblogicTransactionManagerLookup"/>
               <property name="hibernate.default_schema" value="CITI"/>
            </properties>
         </persistence-unit>
      






      thanks,