entao o lazy-init esta true para todos.
porem hora que eu instancio o applicationcontext
o spring esta dando um replace nos beans.
alterando as configuracoes do meu lazy-init para false.
vi isso pelo log4j.
veja so
INFO - AbstractApplicationContext.prepareRefresh(412) | Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@9e29fb: display name [org.springframework.context.support.ClassPathXmlApplicationContext@9e29fb]; startup date [Tue May 27 16:45:26 BRT 2008]; root of context hierarchy
INFO - AbstractApplicationContext.prepareRefresh(412) | Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@9e29fb: display name [org.springframework.context.support.ClassPathXmlApplicationContext@9e29fb]; startup date [Tue May 27 16:45:26 BRT 2008]; root of context hierarchy
INFO - XmlBeanDefinitionReader.loadBeanDefinitions(309) | Loading XML bean definitions from URL [file:/home/andre/IBM/rationalsdp7.0/workspace/MedicView/target/classes/META-INF/spring-context.xml]
INFO - XmlBeanDefinitionReader.loadBeanDefinitions(309) | Loading XML bean definitions from URL [file:/home/andre/IBM/rationalsdp7.0/workspace/MedicView/target/classes/META-INF/spring-context.xml]
INFO - XmlBeanDefinitionReader.loadBeanDefinitions(309) | Loading XML bean definitions from URL [file:/home/andre/IBM/rationalsdp7.0/workspace/MedicView/src/main/resources/META-INF/spring-context.xml]
INFO - XmlBeanDefinitionReader.loadBeanDefinitions(309) | Loading XML bean definitions from URL [file:/home/andre/IBM/rationalsdp7.0/workspace/MedicView/src/main/resources/META-INF/spring-context.xml]
INFO - DefaultListableBeanFactory.registerBeanDefinition(468) | Overriding bean definition for bean ‘dataSource’: replacing [Generic bean: class [org.apache.commons.dbcp.BasicDataSource]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [file:/home/andre/IBM/rationalsdp7.0/workspace/MedicView/target/classes/META-INF/spring-context.xml]] with [Generic bean: class [org.apache.commons.dbcp.BasicDataSource]; scope=singleton; abstract=false; lazyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [file:/home/andre/IBM/rationalsdp7.0/workspace/MedicView/src/main/resources/META-INF/spring-context.xml]]
INFO - AbstractApplicationContext.obtainFreshBeanFactory(427) | Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@9e29fb]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1fd6bea
INFO - AbstractApplicationContext.obtainFreshBeanFactory(427) | Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@9e29fb]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1fd6bea
INFO - DefaultListableBeanFactory.preInstantiateSingletons(415) | Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1fd6bea: defining beans [org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.config.internalTransactionAdvisor,dataSource,cores,observerAgenda,principal,loginDialog,statusBar,agenda,painelHorarios,painelCalendario,dayChooser,modeloTabela,formularioEdicaoPadrao,modeloTabelaFormularioPadrao,filtroTabelaFormularioPadrao,cadastroPaises,cadastroEstados,cadastroCidades,cadastroEspecialidades,cadastroMedicamentos,cadastroBancos,cadastroLaboratorios,cadastroSetores,cadastroGruposDeCusto,cadastroCentrosDeCusto,cadastroCentrosDeReceita,cadastroTabelasCid,cadastroCids,cadastroOcupacoes,cadastroUsuarios,cadastroConvenios,sessionFactory,transactionManager,paisDao,estadoDao,cidadeDao,especialidadeDao,medicamentoDao,laboratorioDao,setorDao,bancoDao,centroDeCustoDao,grupoDeCustoDao,centroDeReceitaDao,tabelaCidDao,cidDao,ocupacaoDao,usuarioDao,convenioDao,consultaDao,pessoaJuridicaDao,paisService,estadoService,cidadeService,especialidadeService,medicamentoService,laboratorioService,setorService,bancoService,centroDeCustoService,grupoDeCustoService,centroDeReceitaService,tabelaCidService,cidService,ocupacaoService,usuarioService,convenioService,pessoaJuridicaService,consultaService]; root of factory hierarchy
INFO - DefaultListableBeanFactory.preInstantiateSingletons(415) | Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1fd6bea: defining beans [org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.config.internalTransactionAdvisor,dataSource,cores,observerAgenda,principal,loginDialog,statusBar,agenda,painelHorarios,painelCalendario,dayChooser,modeloTabela,formularioEdicaoPadrao,modeloTabelaFormularioPadrao,filtroTabelaFormularioPadrao,cadastroPaises,cadastroEstados,cadastroCidades,cadastroEspecialidades,cadastroMedicamentos,cadastroBancos,cadastroLaboratorios,cadastroSetores,cadastroGruposDeCusto,cadastroCentrosDeCusto,cadastroCentrosDeReceita,cadastroTabelasCid,cadastroCids,cadastroOcupacoes,cadastroUsuarios,cadastroConvenios,sessionFactory,transactionManager,paisDao,estadoDao,cidadeDao,especialidadeDao,medicamentoDao,laboratorioDao,setorDao,bancoDao,centroDeCustoDao,grupoDeCustoDao,centroDeReceitaDao,tabelaCidDao,cidDao,ocupacaoDao,usuarioDao,convenioDao,consultaDao,pessoaJuridicaDao,paisService,estadoService,cidadeService,especialidadeService,medicamentoService,laboratorioService,setorService,bancoService,centroDeCustoService,grupoDeCustoService,centroDeReceitaService,tabelaCidService,cidService,ocupacaoService,usuarioService,convenioService,pessoaJuridicaService,consultaService]; root of factory hierarchy
WARN - AnnotationBinder.bindPackage(217) | Package not found or wo package-info.java: entidades
INFO - LocalSessionFactoryBean.buildSessionFactory(732) | Building new Hibernate SessionFactory
INFO - LocalSessionFactoryBean.buildSessionFactory(732) | Building new Hibernate SessionFactory
INFO - LocalSessionFactoryBean.updateDatabaseSchema(952) | Updating database schema for Hibernate SessionFactory
INFO - LocalSessionFactoryBean.updateDatabaseSchema(952) | Updating database schema for Hibernate SessionFactory