Atomikos Forum

All feedback will be investigated, but priority support, confidential support, and product priority updates are reserved for customers. Interested in becoming a customer? Subscribe here...

Only registered users can post (registration is free). Problems registering? Send an email to support@atomikos.com to get help.


JMX Instrumentation of Active Transactions

I am trying to setup mbeans for managing atomikos transactions via JMX.

JmxTransactionService always returns empty transactions list.But Transaction Manager shows active transactions count as 1.


configrations used.

@Configuration
public class JmxConfig {

    @Bean
    public JmxTransactionService jmxTransactionService() {
        JmxTransactionService jmxTransactionService = new JmxTransactionService();
        return jmxTransactionService;
    }

    @Bean
    public JmxTransactionManagerBean jmxTransactionManagerBean(){
        JmxTransactionManagerBean jmxTransactionManagerBean = new JmxTransactionManagerBean();
        jmxTransactionManagerBean.setLogControl(JmxLogAdministrator.getInstance().getLogControl());
        return jmxTransactionManagerBean;
    }

    @Bean
    public MBeanServer mbeanServer() {
        MBeanServerFactoryBean mBeanServerFactoryBean = new MBeanServerFactoryBean();
        mBeanServerFactoryBean.afterPropertiesSet();
        return mBeanServerFactoryBean.getObject();
    }

    @Bean
    public MBeanExporter mbeanExporter() {
        MBeanExporter mbeanExporter = new MBeanExporter();
        mbeanExporter.setServer(mbeanServer());
        Map<String, Object> beans = new HashMap<>();
        beans.put("atomikos:name=tx-service", jmxTransactionService());
        beans.put("atomikos:name=tx-manager", jmxTransactionService());
        mbeanExporter.setBeans(beans);
        return mbeanExporter;
    }

}


atomikos:name=tx-manager - Currently active count property shows 1 as value.
But atomikos:name=tx-service - Transactions property return empty list.
Unable to see any active transactions within atomikos.

Appreciate any help.
Yogya Hewavidana Send private email
vrijdag 10 februari 2017
 
 
Powered by FogBugz