2006/1/4, Ranjan, Rakesh (Cognizant) <[EMAIL PROTECTED]>:
> ObjectName gbQuery = JMXUtil.getObjectName("*:j2eeType=TransactionManager,*");
...
> When I am using this with the Geronimo-1.0-M5, this is working correctly. But
> with Geronimo-1.0 , this is not working correctly.
> java.lang.IllegalArgumentException:
>
> Could not get GBeanInfo for target object:
>
> geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/Server,J2EEServer=geronimo,j2eeType=TransactionManager,name=TransactionManager
>
>
>
> I think kernel.listGBeans() is not working correctly in case of Geronimo-1.0.
> According to the above code, the GBean is
>
> geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/Server,J2EEServer=geronimo,j2eeType=TransactionManager,name=TransactionManager
>
>
>
> But as much I know, it should be
>
>
>
> geronimo.server:J2EEApplication=null,J2EEModule=geronimo/j2ee-server/1.0/car,J2EEServer=geronimo,j2eeType=TransactionManager,name=TransactionManager
Hi,
Have you tried to query using the full object name? I think it should
work. The above seems to imply a bug in listGBeans(). If noone takes
care of it by tonight, I'll be looking into it.
> Rakesh Ranjan
Jacek