This is the method that I used...
but I find the JMX call very ugly, then I tryed to use DynamicProxy to 
wrap all my MBeans,
but I had all kind of problems with ClassLoader...
anyway, now I create a Proxy class for each MBean, then all the EJB 
calls are more 'natural'.
So far so good.
JMX is very powerful feature.. its really amazing !

JBoss rocks!

Juha-P Lindfors wrote:

>On Thu, 5 Sep 2002, Herve Tchepannou wrote:
>
>  
>
>>Seems to be a propriatary approach...
>>I don't want my EJB to contains proprietary core, which will make them
>>non portable.
>>Is there any standard way to access JMX from EJB?
>>    
>>
>
>Yes, retrieve the MBeanServer ref through
>MBeanServerFactory.findMBeanServer() and invoke your MBean through the
>MBeanServer interface returned from that call.
>
>Notice this only works if your MBean is within the same VM with your EJB.
>For a distributed system you need to wait til JMX 1.2 comes out.
>
>-- Juha
>
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by: OSDN - Tired of that same old
>cell phone?  Get a new here for FREE!
>https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
>_______________________________________________
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>  
>





-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to