Hello.
I just started using Ehcache 2.8.3 with Jboss 5.1.0 and we have it all up and running...but the console is now a problem. Everytime a hibernate project is called the console spits out the below...which to us serves absolutely no purpose in production
Code:
Jul 17, 2014 4:52:07 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.3.1.GA
Jul 17, 2014 4:52:07 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Jul 17, 2014 4:52:07 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : javassist
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.bozzutos.ejb.virtualMailbox.objects.VirtualMailbox -> VirtualMailbox
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.bozzutos.ejb.virtualMailbox.objects.VirtualMailboxMessageUsers -> VirtualMailboxMessageUsers
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.bozzutos.ejb.virtualMailbox.objects.VirtualMailboxMessageAttachments -> VirtualMailboxMessageAttachments
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.HbmBinder bindCollectionSecondPass
INFO: Mapping collection: com.bozzutos.ejb.virtualMailbox.objects.VirtualMailbox.virtualMailboxMessageAttachmentSet -> VirtualMailboxMe
ssageAttachments
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.HbmBinder bindCollectionSecondPass
INFO: Mapping collection: com.bozzutos.ejb.virtualMailbox.objects.VirtualMailbox.virtualMailboxMessageUserSet -> VirtualMailboxMessageU
sers
Jul 17, 2014 4:52:08 PM org.hibernate.util.NamingHelper getInitialContext
INFO: JNDI InitialContext properties:{}
Jul 17, 2014 4:52:08 PM org.hibernate.connection.DatasourceConnectionProvider configure
INFO: Using datasource: java:Connections/DATACACHE
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: RDBMS: Microsoft SQL Server, version: 10.50.4000
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC driver: Microsoft JDBC Driver 4.0 for SQL Server, version: 4.0.2206.100
Jul 17, 2014 4:52:08 PM org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.SQLServerDialect
Jul 17, 2014 4:52:08 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
INFO: Transaction strategy: org.hibernate.transaction.JTATransactionFactory
Jul 17, 2014 4:52:08 PM org.hibernate.util.NamingHelper getInitialContext
INFO: JNDI InitialContext properties:{}
Jul 17, 2014 4:52:08 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
Jul 17, 2014 4:52:08 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: instantiated TransactionManagerLookup
Jul 17, 2014 4:52:08 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
Jul 17, 2014 4:52:08 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: instantiated TransactionManagerLookup
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): enabled
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: auto
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL inserts for batching: disabled
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
Jul 17, 2014 4:52:08 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: JPA-QL strict compliance: disabled
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: disabled
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory createRegionFactory
INFO: Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
Jul 17, 2014 4:52:08 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
Jul 17, 2014 4:52:08 PM org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
Jul 17, 2014 4:52:08 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
Jul 17, 2014 4:52:08 PM org.hibernate.util.NamingHelper getInitialContext
INFO: JNDI InitialContext properties:{}
Our cache is defined in code like this
Code:
//Create a singleton CacheManager using defaults
private static CacheManager manager = null;
private static Cache localCache;
static {
try {
if(manager == null)
manager = CacheManager.create();
}catch (Exception e) {
ExceptionLogEJBUtil.exceptionLog(e);
}
try {
if(localCache == null){
//Create a Cache specifying its configuration.
localCache = new Cache(
"LOCAL_CACHE", //name
0, //maxElementsInMemory
MemoryStoreEvictionPolicy.LFU, //memoryStoreEvictionPolicy
false, //overflowToDisk
"", //diskStorePath
false, //eternal
0, //timeToLiveSeconds
(10*60), //timeToIdleSeconds
false, //diskPersistent
0, //diskExpiryThreadIntervalSeconds
null //registeredEventListeners
);
localCache.disableDynamicFeatures();
manager.addCache(localCache);
}
}catch (Exception e) {
ExceptionLogEJBUtil.exceptionLog(e);
}
}
And in our log4j we have disabled hibernate messages except for error like this:
Code:
<category name="org.hibernate">
<priority value="ERROR" />
</category>
<category name="com.terracotta">
<priority value="ERROR" />
</category>
<category name="org.slf4j">
<priority value="ERROR" />
</category>
Any and all assistance is much welcomed!
|