[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Work on 187, 188, 218, .bsh, StructureDeployer
alesj
do-not-reply at jboss.com
Wed Nov 21 05:56:10 EST 2007
"alesj" wrote :
| What I would like to do, is to test that a single deploy|undeploy and (add|remove)+process don't corrupt each other in multithread requests.
| Another test would include a shutdown thread, from where on all other non-shutdown (deploy|undeploy) threads should fail.
| The question is how to gather required information, meaning that a thread was legally allowed to go (or not go) past the locks that we've put?
|
Done.
The first test - DeployerSingleDeploymentTestCase.testMultiThreads - is more a proof of concept through design, unleashing multiple threads just additionally confirms assumptions that deploy/undeploy and (add|remove)+process don't interfere with each other. :-)
The second one - DeployerSingleDeploymentTestCase.testMultiThreadsAndShutdown - is better. :-)
I'm checking if certain DeployerClient method invocation got past the read lock, as such not being valid to fail due to shutdown. All others that didn't get past the read lock must fail.
Perhaps only the way how I'm checking if thread got past the lock is a bit too impl detail - intercepting Deployment.getName method invocation.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106680#4106680
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106680
More information about the jboss-dev-forums
mailing list