Re: [jboss-user] [JBoss Tools Development] - How to Make Your JUnit Tests Run Faster in Eclipse
by Denis Golovin
Denis Golovin [http://community.jboss.org/people/dgolovin] commented on the document
"How to Make Your JUnit Tests Run Faster in Eclipse"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-15108#comment-3085
--------------------------------------------------
JavaModelManager.getIndexManager().disable();
JavaModelManager.getIndexManager().enable();
But be aware that it is not good approach to have indexing disabled TestCase with many test* methods in startUp and enabled in tearDown, because those methods will be exectuted before and after each test method. This will not improve performance because as soon as you enable it, indexing starts and next method will wait until it is finished. It make sense to use disable/enable java indexing as part of TestSetup wrapper implementation, so it is called once for all tests inside suite.
--------------------------------------------------
15 years, 7 months
[JBoss Portal] - JBoss portal - portlet parallel problem
by Raffaele Shmith
Raffaele Shmith [http://community.jboss.org/people/marcelloBoss] created the discussion
"JBoss portal - portlet parallel problem"
To view the discussion, visit: http://community.jboss.org/message/535940#535940
--------------------------------------------------------------
Hello,
i'm developing a portal using JBoss EPP 4.3 and i noticed that with the browser(firefox, in new tabs) parallel portlet loadings aren't accepted.
I did an experiment:
- i created portlet A that have a doView() method that need a lot of time to finish, for example 1 minute with a long query or a simple Thread.sleep().
- i created a simple hello world portlet B.
- i open the first portlet A that need a lot of time to load
- i opened a new tab with firefox and i choose the second portlet.
The loading of the second portlet start after the end of the first. If the first portlet need a lot of time, i have to wait a lot of time to see my hello world(very simple) result.
This isn't a multithreading problem because with other browser isntances pages are concurrents.
I want know if i can change something to improve my portal and avoid this problem.
I hope that you can help me!
Thank you
RM
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/535940#535940]
Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 7 months