我正在尝试使用新的JBOSS EAP 6.1启动Spring应用程序(它适用于旧的Jboss AS 4.2)。
当我部署我的应用程序时,我得到了很多INFO,如下所示:
13:03:31,948 INFO [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (ServerService Thread Pool -- 63) HHH000130: Instantiating explicit connection provider: org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl
13:03:31,948 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (ServerService Thread Pool -- 63) HHH000402: Using Hibernate built-in connection pool (not for production use!)
13:03:31,949 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (ServerService Thread Pool -- 63) HHH000115: Hibernate connection pool size: 20
13:03:31,949 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (ServerService Thread Pool -- 63) HHH000006: Autocommit mode: false
13:03:31,949 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (ServerService Thread Pool -- 63) HHH000401: using driver [oracle.jdbc.OracleDriver] at URL [jdbc:oracle:thin:@myserver:1521:db]
13:03:31,950 INFO [org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl] (ServerService Thread Pool -- 63) HHH000046: Connection properties: {user=my_user, password=****, release_mode=on_close}
13:03:32,818 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 63) HHH000400: Using dialect: org.hibernate.dialect.Oracle10gDialect
13:03:32,942 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 63) HHH000397: Using ASTQueryTranslatorFactory
我知道它们不是错误或警告,但它会永远循环。 如何在应用程序部署期间禁用此验证或hibernate尝试执行的操作?
遵循我的会话bean定义:
<bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="hibernateProperties">
<props>
<prop key="hibernate.connection.driver_class">oracle.jdbc.OracleDriver</prop>
<prop key="hibernate.connection.provider_class">org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl</prop>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
<prop key="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</prop>
<prop key="hibernate.bytecode.use_reflection_optimizer">false</prop>
<prop key="hibernate.cache.use_second_level_cache">false</prop>
<prop key="hibernate.cache.use_query_cache">false</prop>
<prop key="hibernate.connection.release_mode">on_close</prop>
<prop key="hibernate.jdbc.fetch_size">50</prop>
<prop key="hibernate.default_batch_fetch_size">16</prop>
<prop key="hibernate.validator.autoregister_listeners">false</prop>
<prop key="hibernate.connection.username">user</prop>
<prop key="hibernate.connection.password">password</prop>
<prop key="hibernate.connection.url"> jdbc:oracle:thin:@myserver:1521:db] </prop>
</property>
...
如何在启动期间阻止hibernate执行此验证(或其正在执行的任何操作)?