dev@glassfish.java.net

Re: MBean operation not supported

From: Amy Roh <Amelia.Roh_at_Sun.COM>
Date: Fri, 19 Jan 2007 11:54:36 -0800

kedar wrote:
> I agree with Lloyd, when it comes to the GlassFish
> Platform MBeans. To be precise, the "amx:" MBeans
> are the ones that the clients can "depend on" to
> manage GlassFish. The "com.sun.appserv:" MBeans are
> not supported. You are on your own, when you call
> these MBeans. In that sense, this is a reserved MBean
> domain that you should leave alone. In future, we will
> try to hide those MBeans from our clients.
>
> This however, does not mean that you can't have your
> own MBeans. Actually, your application code or explicit
> admin operation does allow to deploy your own MBeans and
> they will be in a domain called "user:". This relates
> to our feature of "custom MBeans" and several folks have
> used that feature. Look at Admin console or asadmin
> commands like "create-mbean".
>
> Amy: What MBeans (object names) do you refer to, and why
> do you want to invoke those MBean operations?

I'm trying to invoke Catalina Deployer MBean method. The MBean is
created after I embed Tomcat so you can think of it as my own MBean.

Again, although the method is visible but "not operational". Trying to
figure out why and where the MBeanServer is making the method "not
operational".

If you're on swan, you can access my mbean -

http://asengsol1.sfbay.sun.com:8082/ViewObjectRes//Catalina%3Atype%3DDeployer%2Chost%3Dlocalhost

Description of manageApp (Operation Not Supported)
void manageApp (org.apache.catalina.Context)context

manageApp operation is listed but says "Operation Not Supported".

Thanks,
Amy
>
> Thanks,
> Kedar
>
> Lloyd L Chambers wrote:
>
>> Amy,
>>
>> Most all MBeans that have a JMX domain other than "amx" are private
>> and should not be used. AMX are the public ones, and there are no
>> unsupported methods.
>>
>> The com.sun.appserv MBeans have a fair number of unsupported methods;
>> the generic code makes no attempt to remove inappropriate methods from
>> the MBeanInfo of subclasses.
>>
>> Lloyd Chambers
>>
>>
>> On Jan 19, 2007, at 10:50 AM, Amy Roh wrote:
>>
>>> Hi guys,
>>>
>>> Do you know why some MBeans operations are "not supported"?
>>>
>>> I do see the method available in MBeanInfo and MBeanOperationInfo and
>>> the method is public and available through mbean descriptor.
>>>
>>> However, when I view the MBean through HTML Adaptor I do see the
>>> method listed but it also says "(Operation Not Supported)"
>>>
>>> After looking at various MBeans, it seems that methods that take any
>>> parameters other than Object or String says "Operation Not
>>> Supported", perhaps serialization issue(?).
>>>
>>> Is there a way to use these "available" methods without getting
>>> "ReflectionException" when invoked?
>>>
>>> Thanks,
>>> Amy
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>