No.  You can get a list of all the jmx servers in the vm from I think
MBeanServerFactory (?) and assume the one you want is the first, then
contact your mbean through the mbean server.  There's a jboss util class
that finds the server for you in this way.  JMX is not part of j2ee, so you
won't find any official ways to communicate.

If you want to use jndi, you can bind the mbean's object into jndi using
referenceable and ObjectFactory yourself: the nonserializableFactory just
does this for you.

david jencks

On 2002.09.05 13:18:06 -0400 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?
> Julien Viet wrote:
> 
> >look in the jboss sources :
> >server/src/main/org/jboss/naming/NonSerializableFactory.java
> >it's described how to use it.
> >
> >
> >----- Original Message -----
> >From: "Herve Tchepannou" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, September 05, 2002 11:07 AM
> >Subject: Re: [JBoss-user] EJB/MBean communication
> >
> >
> >  
> >
> >>What's that? is there any doc available about NonSerializableFactory?
> >>
> >>Julien Viet wrote:
> >>
> >>    
> >>
> >>>you could use maybe the NonSerializableFactory and bind your mbean
> into
> >>>      
> >>>
> >it.
> >  
> >
> >>>----- Original Message -----
> >>>From: "Herve Tchepannou" <[EMAIL PROTECTED]>
> >>>To: "JBoss User Group" <[EMAIL PROTECTED]>
> >>>Sent: Thursday, September 05, 2002 10:31 AM
> >>>Subject: [JBoss-user] EJB/MBean communication
> >>>
> >>>
> >>>
> >>>
> >>>      
> >>>
> >>>>What is the best and portable way to access a MBean from an EJB?
> >>>>
> >>>>I was wondering if I can lookup any of my custom MBean via JNDI from
> my
> >>>>EJB ? (it seems to be cleanest way).
> >>>>If not, how can I attach a MBean to the JNDI tree?
> >>>>
> >>>>
> >>>>
> >>>>-------------------------------------------------------
> >>>>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
> >>>>
> >>>>
> >>>>        
> >>>>
> >>>___________________________________________________________
> >>>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
> >>>Yahoo! Mail : http://fr.mail.yahoo.com
> >>>
> >>>
> >>>-------------------------------------------------------
> >>>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
> >>    
> >>
> >
> >___________________________________________________________
> >Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
> >Yahoo! Mail : http://fr.mail.yahoo.com
> >
> >
> >-------------------------------------------------------
> >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
> 
> 


-------------------------------------------------------
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