[jboss-user] [JBoss Microcontainer] - What is the minimum configuration to register a Deployer?

David Bosschaert do-not-reply at jboss.com
Thu Jun 3 06:42:02 EDT 2010


David Bosschaert [http://community.jboss.org/people/bosschaert] created the discussion

"What is the minimum configuration to register a Deployer?"

To view the discussion, visit: http://community.jboss.org/message/546018#546018

--------------------------------------------------------------
I'm trying to build a simplistic deployer using the structure in
   http://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunk http://anonsvn.jboss.org/repos/jbossas/projects/demos/microcontainer/trunk

Just registering my SimpleDeployer (extends AbstractDeployer) as a bean clearly isn't enough as I'm not getting the deploy() and undeploy() callbacks when I call Main.deploy(someurl) after I've installed my deployer. Do I need to register it somehow?

My current registration looks like this:


<deployment xmlns="urn:jboss:bean-deployer:2.0">    <bean name="SimpleDeployer" class="org.acme.SimpleDeployer"/></deployment>



I have the following code:


// This deploys my Simple Deployer as above
Main.deploy("${demos.home}/deployer/src/main/resources/META-INF/deployer-beans.xml");Main.validate();         Thread.sleep(2000);Main.deploy("${demos.home}/deployer/src/main/resources/META-INF/some-other-beans.xml");Main.validate();         Thread.sleep(2000);Main.undeploy("${demos.home}/deployer/src/main/resources/META-INF/some-other-beans.xml");Main.validate();


I can see that the constructor of my SimpleDeployer is getting called, but it doesn't get any deployment callbacks when I call Main.deploy() later on...

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/546018#546018]

Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100603/30d46b06/attachment-0001.html 


More information about the jboss-user mailing list