20/04/2016, 03:56
|
| | Fecha de Ingreso: marzo-2016
Mensajes: 11
Antigüedad: 8 años, 7 meses Puntos: 0 | |
Respuesta: Vaadin 7 + Hibernate 4 + Spring 3 Hola!
Muchas gracias por tu respuesta.
Te contesto en varias 'respuestas' ya que hay un límite de caràcteres.
Me comentaron utilizar VisualVM pero no consigo que conecte con el localhost de la web lanzada con Netbeans (localhost:8200/name-web/jsp/login.jsp).
No sé si lo has utilizado o alguien lo ha utilizado?
Se lanza Maven tomcat7:run-war
-Djava.rmi.server.hostname=localhost
-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.port=8200
Desde VIsualVM se indica localhost:8200 pero devuelve un error de ‘cannot connect to localhost:8200 ..’
Me miraré el que me comentas! Gracias!
Después de hacer muchas pruebas, realmente ‘peta’ cuando entra por primera vez en la web, una vez ha cargado todas las views en memoria y se redirige a la opción de menú donde se debería indicar en second factor (muy simple, es un panel con un textfield).
Log donde se ve la inicialización de todas las views y donde se cargan los autowired. Esto penaliza el rendimiento, se puede mejorar?
Pongo un ejemplo:
11:24:37.832 [http-bio-8200-exec-9] DEBUG c.g.......ViewCommand - Getting bean for view transactionView (transaction)
11:24:37.832 [http-bio-8200-exec-9] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Creating instance of bean 'transactionView'
11:24:37.833 [http-bio-8200-exec-9] DEBUG o.s.c.a.CommonAnnotationBeanPostProcessor - Found init method on class [com….TransactionView]: public void com…...TransactionView.init()
11:24:37.833 [http-bio-8200-exec-9] DEBUG o.s.c.a.CommonAnnotationBeanPostProcessor - Registered init method on class [com….TransactionView]: org.springframework.beans.factory.annotation.InitD estroyAnnotationBeanPostProcessor$LifecycleElement @316510
11:24:37.837 [http-bio-8200-exec-9] DEBUG o.s.b.f.annotation.InjectionMetadata - Registered injected element on class [com….TransactionView]: AutowiredFieldElement for private com…..VaadinMessageSource com……..view.commons.BasicView.messageSource
11:24:37.837 [http-bio-8200-exec-9] DEBUG o.s.b.f.annotation.InjectionMetadata - Registered injected element on class [com….TransactionView]
: AutowiredFieldElement for private com…...ApiCaller com…..BasicView.apiCaller
11:24:37.837 [http-bio-8200-exec-9] DEBUG o.s.b.f.annotation.InjectionMetadata - Registered injected element on class [com….TransactionView]: AutowiredFieldElement for private com…….VaadinMessageSource com.gdi.airon.portal.transaction.TransactionView.m MessageSource
11:24:37.837 [http-bio-8200-exec-9] DEBUG o.s.b.f.annotation.InjectionMetadata - Registered injected element on class [com….TransactionView]: AutowiredFieldElement for private com.gdi.airon.portal.api.ApiCaller com.gdi.airon.portal.transaction.TransactionView.m ApiCaller
11:24:37.871 [http-bio-8200-exec-9] DEBUG o.s.b.f.annotation.InjectionMetadata - Processing injected method of bean 'transactionView': AutowiredFieldElement for private com.gd.atlas.avc.common.i18n.VaadinMessageSource com.gdi.airon.portal.view.commons.BasicView.messag eSource
11:24:37.871 [http-bio-8200-exec-9] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'messageSource'
11:24:37.871 [http-bio-8200-exec-9] DEBUG o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowiring by type from bean name 'transactionView' to bean named 'messageSource'
11:24:37.871 [http-bio-8200-exec-9] DEBUG o.s.b.f.annotation.InjectionMetadata - Processing injected method of bean 'transactionView': AutowiredFieldElement for private ..............api.ApiCaller com.................view.commons.BasicView.apiCall er
11:24:37.871 [http-bio-8200-exec-9] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'apiCaller'
11:24:37.871 [http-bio-8200-exec-9] DEBUG o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowiring by type from bean name 'transactionView' to bean named 'apiCaller'
11:24:37.871 [http-bio-8200-exec-9] DEBUG o.s.b.f.annotation.InjectionMetadata - Processing injected method of bean 'transactionView': AutowiredFieldElement for private ...............VaadinMessageSource ................TransactionView.mMessageSource
11:24:37.871 [http-bio-8200-exec-9] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'messageSource'
11:24:37.871 [http-bio-8200-exec-9] DEBUG o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowiring by type from bean name 'transactionView' to bean named 'messageSource'
11:24:37.871 [http-bio-8200-exec-9] DEBUG o.s.b.f.annotation.InjectionMetadata - Processing injected method of bean 'transactionView': AutowiredFieldElement for private .................pi.ApiCaller com..........................TransactionView.mApiC aller
11:24:37.871 [http-bio-8200-exec-9] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'apiCaller'
11:24:37.871 [http-bio-8200-exec-9] DEBUG o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - Autowiring by type from bean name 'transactionView' to bean named 'apiCaller'
11:24:37.872 [http-bio-8200-exec-9] DEBUG o.s.c.a.CommonAnnotationBeanPostProcessor - Invoking init method on bean 'transactionView': public void com......transaction.TransactionView.init()
11:24:37.872 [http-bio-8200-exec-9] DEBUG c.g.a.p.transaction.TransactionView - Init TransactionView start
11:24:37.872 [http-bio-8200-exec-9] DEBUG c.g.a.p.view.commons.BasicPresenter - init- BasicPresenter start
11:24:37.872 [http-bio-8200-exec-9] DEBUG c.g.a.p.transaction.TransactionView - init- TransactionView end
11:24:37.872 [http-bio-8200-exec-9] DEBUG c.g.a.c.m.MessageHandlerBeanPostProcessor - Post process bean: com.....TransactionView@26f0c7ae
11:24:37.873 [http-bio-8200-exec-9] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Finished creating instance of bean 'transactionView'
Mil gracias por todo! |