I have writtern a MBean, class of which is in a jar called Rjar.jar
Follwing is structure of my .ear
Class which implemets Mbean interface is in Rjar.jar, but the while deploying corresponding xml, xml gets deployed before this .ear is loaded and hence it throws ClassNotFoundException.
Following is my xml
<?xml version="1.0" encoding="UTF-8"?>
I have tried various combinations of depends tag. but it is still not working.
I have usedREJB.jar instead of Rjar.jar (which actually contains class) b'coz JBoss seems to work in this way(Not sure thought)
Thanks in Advance
You don't say which package your classes are in, the MBean implementation and the MBean interface need to be in the same package. Also the end of the interface should be 'MBean' not 'Mbean'
Where are you trying to configure your MBean? Have you thought about deploying a sar within your ear that contains the classes and the descriptor?