Hibernate ficou mais lento para conectar a primeira vez

1 resposta
dudu_sps

gente… tava fazendo uns relatorios aqui… e tive que adicionar algumas bibliotecas

agora na hora de inicializar o hibernate

vai escrevendo no console
tipo asism

INFO (org.hibernate.cfg.annotations.Version:15) - Hibernate Annotations 3.3.1.GA INFO (org.hibernate.cfg.Environment:514) - Hibernate 3.2.6 INFO (org.hibernate.cfg.Environment:547) - hibernate.properties not found INFO (org.hibernate.cfg.Environment:681) - Bytecode provider name : cglib INFO (org.hibernate.cfg.Environment:598) - using JDK 1.4 java.sql.Timestamp handling INFO (org.hibernate.cfg.AnnotationBinder:418) - Binding entity from annotated class: objetos.Usuario INFO (org.hibernate.cfg.annotations.EntityBinder:424) - Bind entity objetos.Usuario on table CAD_USUARIO INFO (org.hibernate.cfg.AnnotationBinder:418) - Binding entity from annotated class: objetos.Permissao INFO (org.hibernate.cfg.annotations.EntityBinder:424) - Bind entity objetos.Permissao on table FUNC INFO (org.hibernate.cfg.AnnotationBinder:418) - Binding entity from annotated class: objetos.Banco INFO (org.hibernate.cfg.annotations.EntityBinder:424) - Bind entity objetos.Banco on table CAD_BANCO INFO (org.hibernate.cfg.AnnotationBinder:418) - Binding entity from annotated class: objetos.Conta INFO (org.hibernate.cfg.annotations.EntityBinder:424) - Bind entity objetos.Conta on table CAD_CONTA INFO (org.hibernate.cfg.AnnotationBinder:418) - Binding entity from annotated class: objetos.Grupo INFO (org.hibernate.cfg.annotations.EntityBinder:424) - Bind entity objetos.Grupo on table CAD_GRUPO INFO (org.hibernate.cfg.AnnotationBinder:418) - Binding entity from annotated class: objetos.Cep INFO (org.hibernate.cfg.annotations.EntityBinder:424) - Bind entity objetos.Cep on table CAD_CEP INFO (org.hibernate.cfg.AnnotationBinder:418) - Binding entity from annotated class: objetos.Funcionario INFO (org.hibernate.cfg.annotations.EntityBinder:424) - Bind entity objetos.Funcionario on table CAD_FUNCIONARIO .........

e ta mais lerdo pra começar… ta carregando todas as tabelas…
soh pra inicializar o programa ta demorando certa de um minuto em algumas maquinas

o que que pode ser??

desde ja agradeço

1 Resposta

wagner_a_lima

Não sei se entendi. mas acho que isso é “normal”. Você deve ter adicionado alguma biblioteca de log, tipo log4j.
Se estiver utilizando log4j faca esse teste:

log4j.rootCategory=WARN, CONSOLE
Criado 25 de fevereiro de 2010
Ultima resposta 25 de fev. de 2010
Respostas 1
Participantes 2