We are sorry for that. Luan and I are very busy writing a Maven book and giving a lot of talks in many conferences around Brazil and abroad.
Let's dive into our post!
In this post you will learn that your expose your framework/library throw modules and if you want that it automatically be access by any application deployed you can simplify your life declaring it as a global module (instead declaring the module each time in the application's XML)
While working on JBoss on domain mode, you might have to deploy your own modules. You can declare the modules on CLI in a way like that:
Seems easy, huh?
But what happens if you do not want do add modules per HOST, but globally?
Well, there's a good trick for that.
Into domain.xml file, locate the subsystem where you want to add your module. In our case, it's "ee" subsystem. Then, add the tag <global-modules> as follows:
<subsystem xmlns="urn:jboss:domain:ee:1.1"> <global-modules> <module name="com.ourdailycodes" slot="main"/> </global-modules> <!-- Other subsystem configuration --> </subsystem>
Done! By declaring that your modules will be visible globally to all hosts of a certain profile.
More information here:
There! Hope it helps you! You can ask any doubt a the comments section below =D Thank you!