Most mbeans in jboss are defined and configured in *-service.xml files. 
For instance most of the base server configuration is in server/[config
name]/conf/jboss-service.xml

I usually find I want to extend the jboss specific ServiceMBeanSupport to
take advantage of the jboss service lifecycle: you get
create/start/stop/destroy[Service] methods called as your mbean is
deployed/undeployed.

createService -- all your properties are set from *-service.xml: you can
use these but don't expect anything outside your mbean to exist.

startService -- if you said you needed other mbeans using a depends tag,
they will be started so you can use them.

stopService -- undo start.

destroy -- undo create.

I think there's a little more in the jboss 3 quickstart guide.

david jencks


On 2002.08.26 15:00:28 -0400 ed banfa wrote:
> 
> Hi List, ur all great.
> One thing though, what is the entry point to using MBeans in JBOSS, like
> what initializations have to take place e.t.c. do I NEED TO change my
> deployment descriptors?.  JBoss aint easy, but I LOVE IT !!!!!!!!!!
> Hey am new, so excuse me if I am getting to over excited.
> Thanks to u all
> Edward
>  Dain Sundstrom wrote:JMX will be part of J2EE 1.4.
> 
> -dain
> 
> LaBanca, Rick wrote:
> > Since and mbean isn't j2ee standard I'm not using them, but I hope sun
> is
> > watching. The glaring omission from j2ee is indeed a standard way of
> doing
> > services (rmi apps don't really fit within the scheme nicely). Perhaps
> they
> > will adopt the jboss way or something similar someday!
> > 
> > rick
> > 
> 
> 
> 
> -------------------------------------------------------
> 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!?
> Yahoo! Finance - Get real-time stock quotes
> <P>Hi List, ur all great.
> <P>One thing though, what is the entry point to using MBeans in JBOSS,
> like what initializations have to take place e.t.c. do I NEED TO change
> my deployment descriptors?.&nbsp; JBoss aint easy, but I LOVE IT
> !!!!!!!!!!
> <P>Hey am new, so excuse me if I am getting to over excited.
> <P>Thanks to u all
> <P>Edward
> <P>&nbsp;<B><I>Dain Sundstrom <[EMAIL PROTECTED]></I></B>wrote:
> <BLOCKQUOTE style="BORDER-LEFT: #1010ff 2px solid; MARGIN-LEFT: 5px;
> PADDING-LEFT: 5px">JMX will be part of J2EE
> 1.4.<BR><BR>-dain<BR><BR>LaBanca, Rick wrote:<BR>&gt; Since and mbean
> isn't j2ee standard I'm not using them, but I hope sun is<BR>&gt;
> watching. The glaring omission from j2ee is indeed a standard way of
> doing<BR>&gt; services (rmi apps don't really fit within the scheme
> nicely). Perhaps they<BR>&gt; will adopt the jboss way or something
> similar someday!<BR>&gt; <BR>&gt; rick<BR>&gt;
> <BR><BR><BR><BR>-------------------------------------------------------<BR>This
> sf.net email is sponsored by: OSDN - Tired of that same old<BR>cell
> phone? Get a new here for 
>FREE!<BR>https://www.inphonic.com/r.asp?r=sourceforge1&amp;refcode1=vs3390<BR>_______________________________________________<BR>JBoss-user
> mailing 
>list<BR>[EMAIL PROTECTED]<BR>https://lists.sourceforge.net/lists/listinfo/jboss-user</BLOCKQUOTE><p><br><hr
> size=1><b>Do You Yahoo!?</b><br>
> <a href="http://rd.yahoo.com/finance/mailsig/new/*http://finance.yahoo.com";>Yahoo!
> Finance</a> - Get real-time stock quotes


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