Folks,

In your CVS now is Phoenix 4.0 beta.  Enjoy.

The most interesting thing delivered is JMX via MX4J's HTTP adapter. 
 Launch the app, and navigate a web browser to http://localhost:8082. 
 There is nothing there that is specific to JAMES, but there could be if 
you create some interfaces like 
http://cvs.apache.org/viewcvs/jakarta-avalon-apps/demo/src/java/org/apache/avalon/apps/demos/helloworldserver/HelloWorldServerMBean.java

You have two choices to complete the JMX picture.

1) Use xdoclet like the 
http://cvs.apache.org/viewcvs/jakarta-avalon-apps/demo/ project (see the 
javadocs tags in the two interfaces -> 
http://cvs.apache.org/viewcvs/jakarta-avalon-apps/demo/src/java/org/apache/avalon/apps/demos/helloworldserver/)

2) Hand craft the .xinfo and .mxinfo files.  Here are the two that are 
generated by the xdoclet technology mentioned above:

<?xml version="1.0"?>
<!DOCTYPE blockinfo PUBLIC "-//PHOENIX/Block Info DTD Version 1.0//EN"
                  "http://jakarta.apache.org/phoenix/blockinfo_1_0.dtd";>
<blockinfo>
  <!-- section to describe block -->
  <block>
    <version>1.0</version>
  </block>
  <!-- services that are offered by this block -->
  <services>
    <service 
name="org.apache.avalon.apps.demos.helloworldserver.HelloWorldServer"/>
  </services>
  <!-- interfaces that may be exported to manange this block -->
  <management-access-points>
    <service 
name="org.apache.avalon.apps.demos.helloworldserver.HelloWorldServerMBean"/>
  </management-access-points>
  <!-- services that are required by this block -->
  <dependencies>
    <dependency>
      <service 
name="org.apache.avalon.cornerstone.services.sockets.SocketManager"/>
    </dependency>
    <dependency>
      <service 
name="org.apache.avalon.cornerstone.services.connection.ConnectionManager"/>
    </dependency>
  </dependencies>
</blockinfo>

<?xml version="1.0"?>
<!DOCTYPE mxinfo PUBLIC "-//PHOENIX/Mx Info DTD Version 1.0//EN"
                  "http://jakarta.apache.org/phoenix/mxinfo_1_0.dtd";>
<mxinfo>
    <topic name="Greeting" >
      <!-- attributes -->
      <attribute
        name="greeting"
        description="Sets the greeting that is returned to each http 
request"
        type="void"
      />
      <!-- operations -->
    </topic>
</mxinfo>

- Paul


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to