Announcement Announcement Module
Collapse
No announcement yet.
jmx export Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • jmx export

    I am a bit puzzeled why the message store does not get exported while it has been properly annotated.

    Code:
    <context:mbean-export  server="mbean-server" default-domain="ws-settings"  />
    <int-jmx:mbean-export id="int-mbean-export" server="mbean-server" default-domain="ws-client"  />
    <bean id="message-store" class="org.springframework.integration.store.SimpleMessageStore"/>
    Attachment

    the image is resized, well in any case the message store does not get exported,
    Attached Files
    Last edited by wims.tijd; May 4th, 2012, 07:20 AM.

  • #2
    The integration MBean exporter is a special exporter that performs extra handling to export MBeans for channels and endpoints.

    SimpleMessageStore is a simple Spring bean and will be exported by the regular MBean exporter (<context:mbean-export />).

    Comment


    • #3
      well there seems to be a conflict then : when disabling integration:mbean-export the message-store got exported,
      in combination with spring:export it doesn't

      Comment


      • #4
        This is interesting. What version of SI you are using?

        Comment


        • #5
          Code:
          <spring.framework.version>3.1.1.RELEASE</spring.framework.version>
          		<spring.integration.version>2.1.1.RELEASE</spring.integration.version>

          Comment


          • #6
            This is a bug; please open a JIRA. The MBeanExporterHellper exclude all org.springframework.integration.* classes, even those not exported by the IMBE.

            I'll look for a work-around for you.

            Comment


            • #7
              You can work around it by explicitly exporting the store...

              Code:
              <bean id="customMBE" class="org.springframework.jmx.export.annotation.AnnotationMBeanExporter">
              	<property name="defaultDomain" value="spring"/>
              	<property name="beans">
              		<map>
              			<entry key="MyMessageStore" value-ref="ms"/>
              		<map>
              	</property>
              </bean>
              The exclusion logic performed by the IMBE's helper only excludes auto-detected beans (its intent is to prevent other exporters from exporting the beans already exported by the IMBE).

              Hope that helps.

              Comment


              • #8
                indeed, thx for the work around,
                Code:
                <bean class="org.springframework.jmx.export.annotation.AnnotationMBeanExporter"
                   		p:server-ref="mbean-server" p:defaultDomain="ws-settings"
                   		p:beans-ref="mbeans-map"
                   />
                   
                   <util:map id="mbeans-map">
                   		<entry key="message-store" value-ref="message-store"/>
                   </util:map>
                i noticed also that the wire tap is exported when disabling the integration:mbean-export,
                with integration:mbean-export it is not exported

                https://jira.springsource.org/browse/INT-2541
                Last edited by wims.tijd; May 4th, 2012, 05:13 PM.

                Comment


                • #9
                  OK; thanks; this is going to be the case for any MBean in the org.springframwork.integration package (and subpackages) that are not channels or endpoints.

                  We'll figure out a fix; thanks for opening the JIRA

                  Comment

                  Working...
                  X