Good Day,
Today we will observe how can we add jboss applications on OEM targets. Beginning with Grid Control OMS 10.2.0.3 and Grid Control Agent 10.2.0.3, the Third Party Plug-in for JBoss monitoring is available.
Supported version of jboss - JBoss are 4.0.x and above: Supported version of OEM agent: 10.2.0.3 or higher, it will be perfect if you use version 11g
So what we did:
1. Install OEM agent 11g on target server , where is installed jboss service
2. Open JNDI Port of JBoss Application Server on the Agent Host. JNDI port is 1099
3.The Management ejb (MEJB) must have been deployed to JBoss Application Server, for this task you should find ejb-management.jar file under <JBoss_HOME>/docs/examples/jmx and copy the jar file to the deploy folder of the running JBoss Application Server.
After this procedure go to EOM on Target Page<Middleware. and chose Jboss Apliication Server and fill following form:

You should fill server host,Install home and JNDI port(1099). After that you should add credential of server and OEM automatic find appropriate jboss service.
Most popular issue after deploying is metric error like this : Java Virtual Machine context could not be obtained. Cause of this issues is memory parameters are not enough for resource usage.
Solution:
1.Stop OEM agent
2.Backup and edit agent11g/sysman/config/emd.properties file
3.Change from :
agentJavaDefines=-Doracle.dms.refresh.wait.time=1000 -DUrlTiming.UseJSSE=true-Dnetworkaddress.cache.ttl=1800 -Djava.awt.headless=true
to:
agentJavaDefines=-Xms256m -Xmx512m -Doracle.dms.refresh.wait.time=1000-DUrlTiming.UseJSSE=true -Dnetworkaddress.cache.ttl=1800-Djava.awt.headless=true
4. Start OEM agent
And Enjoy with OEM!