4.3. Referencing the Spring Module

If you install Spring as a module, you can voluntarily included it in applications through the /META-INF/jboss-deployment-structure.xml or /WEB-INF/jboss-deployment-structure.xml descriptors as follows:

<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
	<deployment>
		<dependencies>             
			<module name="org.springframework.spring" slot="<slot-name>">
				<imports>
					<include path="META-INF**"/>
					<include path="org**"/>
				</imports>
			</module>
		</dependencies>
	</deployment>
</jboss-deployment-structure>
The <imports> element in the descriptor is critical for the proper functioning of the Spring custom namespace capabilities. For applications that use custom namespaces and require a shared Spring module, you must use the JBoss Enterprise Application Platform deployment structure descriptors with the <imports> element. Applications can also reference the module through manifest by adding the following to the META-INF/MANIFEST.MF file:
Dependencies: org.springframework.spring:<slot-name>
However, changes to the META-INF/MANIFEST.MF file does not allow the usage of custom Spring namespaces.