[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: MainDeployerImpl.deploy and checkComplete

adrian@jboss.org do-not-reply at jboss.com
Fri Nov 16 10:59:25 EST 2007


Actually, thinking about it the signatures should really be:


  |    void deploy(Deployment... deployment) throws DeploymentException
  |    void undeploy(Deployment... deployment) throws DeploymentException
  | 

So you can deploy multiple deployment together in a thread safe 
and atomic way.

This will make the implementation a bit more complicated, buit it will be
more useful when you need to deploy mutiple deployments that are related.
This happens a lot in the JBossAS testsuite.
e.g. 

  | getDeploySetup(MyTestCase.class, "queues-service.xml, test.ear");
  | 

The ... means it will also work for a single deployment as well.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105536#4105536

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105536



More information about the jboss-dev-forums mailing list