-
1. Re: Can i add/remove modules using JBoss CLI in Jboss AS 7.1.1
jensaug Nov 11, 2013 5:11 PM (in response to manoj.m.agarwal)Manoj,
Short answer: No.
There is no 'module' command in 7.1.1.Final. To handle modules in runtime, you can add a /META-INF/jboss-deployment-structure.xml file with a module element, something like this:
<jboss-deployment-structure>
<module name="deployment.org.datacom" slot="main" >
<resources>
<resource-root path="."/>
</resources>
</module>
</jboss-deployment-structure>
This way you can handle slot/versions of your 'module', dependencies, exports etc. But depending on what you want to achieve - any deployment can be referenced using a module-alike dependency, so you can also simply deploy your archive 'datacom-1.0.SNAPSHOT.jar' and create depdendencies to 'deployment.datacom-1.0.SNAPSHOT.jar'
However, you'll find the module command in later versions, like 7.1.3.Final and 7.2.0.Final
br,
Jens