[jboss-dev-forums] [Design of JBoss ESB] - Re: ESB4.x/AS 5 classloading
beve
do-not-reply at jboss.com
Fri Apr 17 03:47:17 EDT 2009
anonymous wrote : See jboss-dependency.xml.
I believe that we are using this but doing it programatically since we have a different configuration file (deployment.xml) for specifying dependencies in ESB 4.x.
This is how it we are doing it at the moment:
http://anonsvn.jboss.org/repos/labs/labs/jbossesb/workspace/dbevenius/jbossas5/product/rosetta/src/org/jboss/soa/esb/listeners/deployers/mc/EsbDeployer.java
// Add the dependencies for this deployment.
| Set<ObjectName> dependencies = esbMetaData.getDependencies();
| for (ObjectName objectName : dependencies)
| {
| // The dependencies are added as demands. If we add them as dependencies
| // they will get undeployed when this unit is undeployed.
| bmdBuilder.addDemand(objectName.toString());
| }
The dependencies are added by the EsbConfigParser deployer by extracting the dependency information from deployment.xml.
If one deployment has a dependency on another does that imply that the one defining the dependency has access to the other deployments classes?
Thanks,
/Daniel
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226094#4226094
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4226094
More information about the jboss-dev-forums
mailing list