[jboss-user] [JBoss Microcontainer] - Re: Custom Deployer - migrate from JBoss4.2
Ales Justin
do-not-reply at jboss.com
Fri Feb 18 07:07:46 EST 2011
Ales Justin [http://community.jboss.org/people/alesj] created the discussion
"Re: Custom Deployer - migrate from JBoss4.2"
To view the discussion, visit: http://community.jboss.org/message/588315#588315
--------------------------------------------------------------
> +*The question was: how I must use Deployer in JBoss5 (6) for sort and filter subdeployments?*+
In case you missed this article, a bit more info on how MC' VDF works:
* http://java.dzone.com/articles/jboss-microcontainer-virtual-deployment-framework http://java.dzone.com/articles/jboss-microcontainer-virtual-deployment-framework
To answer the question, you can do this:
(a) use jboss-structure.xml to define a deployment comparator per (sub)deployment
* http://community.jboss.org/docs/DOC-13178 http://community.jboss.org/wiki/JBoss5custommetadatafiles
A down side of this is that you then have to be explicit about all things; metadata locations, classpath, ...
(b) you can add a deployer that dynamically/runtime sets relative order of subdeployments
* see DeploymentUnitExt::changeRelativeOrder
(c) set global comparator in deployers.xml for MainDeployerImpl
* <property name="comparator"><inject bean="topContextComparator"/></property>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/588315#588315]
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/20110218/70e71faa/attachment.html
More information about the jboss-user
mailing list