ooh.. at last i have got the solution ... dynamic MBean invocation problem..
you people know what was that..
refer the wiki.
http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingTheRMIAdaptor but the mistake i was doing is i was invoking an operation defined as attribute
my MBean had the property named dataSourceName and i was calling its getter method getDataSourceName through invoke.
its working in jboss3.2.6 but not in jboss4.0.5.
then i called the property through server.getAttribute() it was working..
later i create another operation like getInfo in my MBean as well as in my xml file. and called it dynamically through invoke. it was also running...
conclusion i come with..
1- use MBeanConnection instead of RMIAdaptor
2- use getAttribute,setAttribute in order to access your attribues.
3- use dynamic invocation where it requires, since its bit costly in term of processing resolving objectName.