finally got it to work. thanks scott for the idea to just deploy the html adaptor 
classes!

1. download jmx 1.2.1
2. put jmxtools.jar in server/minimal/lib
3. add this to server/minimal/deploy/user-service.xml:

  | <mbean code="com.sun.jdmk.comm.HtmlAdaptorServer"
  |          name="adaptor:protocol=HTTP,port=8090">
  |     <attribute name="Port">8090</attribute>
  |   </mbean>
  | 


to figure out what the problem was, i deployed a sar that looks like this:

  | my-jmx-console.sar
  |   META-INF
  |     jboss-service.xml
  |   jmxtools.jar
  |   my-commons.jar
  | 

jboss-service.xml includes
1. my custom mbean MBeanManager
2. the sun html adaptor

my MBeanManager mbean makes sure that an MBeanServer exists, and as it turns out, when 
it was started, there was no MBeanServer, so my mbean ended up creating it.
the code looks something like this, and the only question left to answer is why was 
the MBeanServer missing.

  | final List mBeanServerList = MBeanServerFactory.findMBeanServer (null);
  | if (mBeanServerList == null || mBeanServerList.size () == 0) {
  | MBeanServerFactory.createMBeanServer ()
  | }
  | 

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826768#3826768";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826768>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to