1. Install JBoss AS
-------------------
1.a unzip jboss-eap-4.2.CP01.zip (version number may vary 4.2CP01 is the important part)
1.b cd jboss-eap-4.2/jboss-as/server
1.c copy default/ dir twice ; name the 2 copies  : server1 and server2
1.d cd jboss-eap-4.2/jboss-as/server/server2/conf/jboss-service.xml
Uncomment the following section and replace ports-01 by ports-02
   <mbean code="org.jboss.services.binding.ServiceBindingManager"
     name="jboss.system:service=ServiceBindingManager">
     <attribute name="ServerName">ports-01</attribute>
     <attribute name="StoreURL">${jboss.home.url}/docs/examples/binding-manager/sample-bindings.xml</attribute>
     <attribute name="StoreFactoryClassName">
       org.jboss.services.binding.XMLServicesStoreFactory
     </attribute>
   </mbean>
The BindingManager service makes it easy to completely change the port set used by the server. 
For instance, tomcat on server2 will use in that example port 8280 : all ports are increased by 200 with ports-02 configuration.
1.e Run the servers
cd jboss-eap-4.2/jboss-as/bin
./run.sh -c server1
./run.sh -c server2

2. Import the 2 new servers
---------------------------
Go to the Dashboard. The AutoDiscovery portlet should show you the two servers : import them.
Otherwise, Browse Resource to your platform. Click the Operation Tab and perform a Manual Discovery immediately.
Then go to the Dashboard again and import the two new servers.
Click the Browse Resource link in the upright corner, choose the "Servers link" ; you should see them.

3. Compatible groups
--------------------
In the Browse Resource page, click the link Compatible Groups. 
Click the NewGroup link in the upright corner.
Create a MyJBossAS compatible group, choosing JBossAS as resource type.
Terminate this step adding server1 and server2 to the group.

4. Dynamic groups
-----------------
In the Browse Resource page, click the link Group Definitions. Click the NewGroup link in the upright corner.
Click the New Definition button.
Choose MyJBossASDynamic as a name.
Click the create button.
Click the Edit button to enter your group constraints :
resource.type.plugin = JBossAS
resource.type.name = JBossAS Server
Click the Calculate Groups button.

Server1,Server2,and JBossON server should be in the group.

5. View the group metric charts
-------------------------------
In the Browse Resource page, click the link Compatible Groups.
Click one of the two groups to access the Group Monitor tab.
Click on the JVM free memory chart for instance ; click the "Save to Dashboard" button.
Go to the Dashboard : a link should be present in the Chart portlet.