5 Replies Latest reply on Jun 20, 2011 5:06 PM by Marcos Meneghette

    Automatic loading of persistence units in JBoss AS 5

    Marcos Meneghette Newbie

      In Jboss 4.x.x


      Seam was responsible to oading of persistence units


      But on Jboss 5 automatic loading of persistence units,


      I Want do disable this, because I need to configure some properties dynamic like this:


           <persistence:entity-manager-factory     name="siqWebEntityManagerFactory" persistence-unit-name="siqweb" >
                <persistence:persistence-unit-properties >
                     <key>hibernate.dialect</key>
                     <value>#{siqDatabaseConnection.dialect}</value>
                     
                     <key>hibernate.show_sql</key>
                     <value>#{siqDatabaseConnection.show_sql}</value>          
                     
                     <key>hibernate.format_sql</key>
                     <value>#{siqDatabaseConnection.format_sql}</value>     
                     
                     <key>hibernate.hbm2ddl.auto</key>
                     <value>#{siqDatabaseConnection.hbm2ddl}</value>
                     
                     <key>hibernate.transaction.manager_lookup_class</key>
                     <value>#{siqDatabaseConnection.manager_lookup_class}</value>
                     
                     <key>hibernate.search.default.directory_provider</key>
                     <value>#{siqDatabaseConnection.directory_provider}</value>
                     
                     <key>hibernate.search.default.indexBase</key>
                     <value>#{siqDatabaseConnection.indexBase}</value>
                </persistence:persistence-unit-properties>
           </persistence:entity-manager-factory>
      



      Can anyone help ?