On Mon, Mar 15, 2010 at 8:27 PM, Christian Schneider <ch...@die-schneider.net> wrote: > Am 15.03.2010 16:39, schrieb Claus Ibsen: >> >> On Mon, Mar 15, 2010 at 4:21 PM, Hadrian Zbarcea<hzbar...@gmail.com> >> wrote: >> >>> >>> I have nothing against that, but I was making a slightly different point. >>> >>> Coding a framework is different than coding an application. With the >>> latter, one pretty much knows what to expect. With frameworks things are a >>> bit more complicated. I can see how a developer in a long running, managed >>> application, would create/start/stop a camel context multiple times. We >>> should not have side effects from previous executions of the camel context, >>> i.e. camel should cleanup after itself. Done right, it will also have the >>> fringe benefit of not needing to instantiate a jvm pertest. Having 2 >>> profiles with different testing strategies is fine. >>> >>> >> >> Camel does cleanup the JMX stuff when its shutdown. Its most likely >> other "stuff" which influence this which have a unforseen and weird >> side effect which causes tests to not run reliable across all OS in >> any time you you run it. >> >> Of course giving the shutdown logic a review in Camel is of course a >> good thing in case anyone can spot a weak spot. >> >> > > That is a good "side effect" of the fork once. You find many points where > cleanups do not completely work. But it is a real pain to find the cause of > such failures sometimes. >
Since its camel-core + camel-spring which takes the most time to test. Someone could experiment with disabling JMX and NOT use per test fork mode. And only enable JMX for the tests which needs JMX = the ones in the management package. Then we can "rely" on JMX being tested throughly in all the other tests, such as in camel-itests and the other 2000 unit tests from all the other components. This may speed up a great deal. I did once a test without JMX and it reduced 15-20%. > Greetings > > Christian > > -- > > Christian Schneider > --- > http://www.liquid-reality.de > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus