Have a look at JNDI View from jmx-console to see what is bound. Were there any errors on deployment?
Your question would be better in the beginners corner forum.
Will post this in beginners corner forum.
But the program i have written is correct ?
I couldn't see any errors on deployment. Also i couldn't find this JNDI name in the JNDI-view .
What version of JBoss?
ejb/mgmt/MEJB exist only in 4.0
I could resolve the problem.
The problem was because I didn't deploy the ejb-management.jar .
And by default its not being deployed in version 3.2.5 and 4.0.0.
But in the prev. version of JBoss ie (3.0.8, 3.0.4) this application was being deployed by default.