[jboss-user] [Microcontainer] - Re: DeploymentUnitRegistry: exists?

alesj do-not-reply at jboss.com
Sun Dec 14 02:05:11 EST 2008


You can probably combine the usage of
 - http://anonsvn.jboss.org/repos/jbossas/projects/jboss-deployers/trunk/deployers-client-spi/src/main/java/org/jboss/deployers/client/spi/DeployerClient.java
 - http://anonsvn.jboss.org/repos/jbossas/projects/jboss-deployers/trunk/deployers-structure-spi/src/main/java/org/jboss/deployers/structure/spi/main/MainDeployerStructure.java

e.g.

  | Object mainDeployer = MC.getBean("MainDeployer");
  | DeployerClient dc = (DeployerClient)mainDeployer;
  | MainDeployerStructure mds = (MainDeployerStructure)mainDeployer;
  | for (Deployment d : dc.getTopLevel())
  | {
  |    DeploymentUnit du = mds.getDeploymentUnit(d.getName());
  |    // do something with du
  | }
  | 

I expect the blog when I wake up on Monday. ;-)

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

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



More information about the jboss-user mailing list