Announcement Announcement Module
Collapse
No announcement yet.
My JConsole with Spring+JMX is not working. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • My JConsole with Spring+JMX is not working.

    Hello,

    I integrate JMX in my application ,but my application use remote database using VPN.
    So when i'm connected to VPN then application is working fine but not able connect through JConsole.

    My JMX configuration code is below.
    ApplicationContext.xml
    Code:
    <beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:aop="http://www.springframework.org/schema/aop"
      xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="http://www.springframework.org/schema/beans
               http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
               http://www.springframework.org/schema/aop
               http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
               http://www.springframework.org/schema/context
               http://www.springframework.org/schema/context/spring-context-2.5.xsd">
    
    <bean id="smtpConfiguration1" class="com.cygnet.SmtpConfiguration">
    <property name="host" value="${host}"></property>
    <property name="port" value="${port}"></property>
    <property name="username" value="${username}"></property>
    <property name="password" value="${password}"></property>
    
    </bean>
    <context:annotation-config></context:annotation-config>
    <context:property-placeholder location="mail.properties" />  
    <context:component-scan base-package="com.cygnet"></context:component-scan>
    
    <bean id="exporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">
        <property name="beans">
          <map>
            <entry key="bean:name=smtpConfiguration" value-ref="smtpConfiguration1"/>
          </map>
        </property>
      </bean>
    </beans>
    Can i miss to add something in my above configuration?

    Thanks,
    Ankit Patel
    Last edited by ankit8051; Mar 6th, 2014, 11:20 PM.
Working...
X