[ http://jira.jboss.com/jira/browse/JBJMX-89?page=comments#action_12316519 
]
     
Dimitris Andreadis commented on JBJMX-89:
-----------------------------------------

Where exactly is the problem? What's your use case?

The 1.2 spec says (pp.34)

"It is not a requirement for an MBean of any type to be a public class."

but then,

"An MBean must be of a public concrete class with a public constructor if it is 
to be instantiated by a JMX agent..."

So, if you class is not public it can not be loaded by the jboss .sar 
deployment mechanism, and that's normal.

I presume you could code one of your public MBeans to act as a factory and 
create/register the package private MBean to the MBeanServer (to be honest, I 
haven't tested that.)



> Access the interface not the implementation
> -------------------------------------------
>
>          Key: JBJMX-89
>          URL: http://jira.jboss.com/jira/browse/JBJMX-89
>      Project: JBoss JMX
>         Type: Bug
>     Versions:  JBossAS-4.0.1
>     Reporter: Michael Kopp

>
>
> I have a package private MBean class, the StandardMBean interface is public 
> though!
> class WorkManager implements WorkManagerMBean
> WorkManager is private
> WorkManagerMBean is public
> Unfortunatelly jboss jmx accesses the implementation directly, thus throwing 
> an IllegalAccessException. If it would access the mbean via the provided 
> interface this would not happen. (like jdk 5 is doing)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to