-
1. Re: Is it possible to restart jboss container after crash ?
aslak Oct 21, 2011 10:50 AM (in response to zhfeng)Not currently. You might be able to fool it by setting maxTestClassesBeforeRestart to 1, but that will mean it will restart the container on every testClass.
Another option is you can possible play around with this branch for now:
https://github.com/mgencur/arquillian-core/tree/ARQ-336_clean
That gives you an option for defining the container mode as Manual. So you can inject a ContainerController for starting / stopping / killing containers.
-
2. Re: Is it possible to restart jboss container after crash ?
paul.robinson Oct 21, 2011 12:03 PM (in response to zhfeng)Amos,
You could run a second test that causes JBossAS to boot up again. Sounds like a hack, but I think you might need to do that anyway to solve your problem....
As you are testing crash recovery you need the AS to boot, wait until recovery is complete and then shutdown. Your second test can wait for the recovery to complete and then trigger a shutdown.
Detecting when recovery is complete is the tricky bit. But that's another issue; Andrew Dinn and I have an idea of how we can do this which we should probably discuss offline.
Paul.
-
3. Re: Is it possible to restart jboss container after crash ?
zhfeng Oct 24, 2011 5:05 AM (in response to aslak)Thanks all,
maxTestClassesBeforeRestart property works fine, and I boot up in the other test.