Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Purpose

This simple aspect is only needed when you want to start a MX4J server without modifying your application.

We are using it in our test suite, but you probably don't need to use it unless you plan to run some test with MX4J.

Usage

Here is a sample aspectwerkz.xml file:

Code Block
xml
xml
<aspectwerkz>
  <system id="aspectwerkz-aware">
    <package name="org.codehaus.aware.jmx">
      <aspect class="MX4JAspect">
        <param name="connectorURL" value="service:jmx:rmi://localhost/jndi/jrmp"/>
        <param name="httpAdaptorName" value="Server:httpAdaptorName=HttpAdaptor"/>
        <param name="httpAdaptorHost" value="localhost"/>
        <param name="httpAdaptorPort" value="8082"/>
        <param name="httpProcessorName" value="Server:processorName=Processor"/>
        <pointcut name="initApp" expression="execution(* junit.framework.TestSuite.run(..))"/>
      </aspect>
    </package>
  </system>
</aspectwerkz>

See Also

MBeanRegistrationAspect and MBeanNotificationAspect.