Search in sources :

Example 1 with JmsMBeanImpl

use of org.apache.karaf.jms.internal.JmsMBeanImpl in project karaf by apache.

the class Activator method doStart.

@Override
protected void doStart() throws Exception {
    JmsServiceImpl service = new JmsServiceImpl();
    service.setBundleContext(bundleContext);
    register(JmsService.class, service);
    JmsMBeanImpl mbean = new JmsMBeanImpl();
    mbean.setJmsService(service);
    registerMBean(mbean, "type=jms");
    RegexCommandLoggingFilter filter = new RegexCommandLoggingFilter();
    filter.addRegEx("create +.*?--password ([^ ]+)", 2);
    filter.addRegEx("create +.*?-p ([^ ]+)", 2);
    register(CommandLoggingFilter.class, filter);
}
Also used : JmsServiceImpl(org.apache.karaf.jms.internal.JmsServiceImpl) RegexCommandLoggingFilter(org.apache.karaf.shell.support.RegexCommandLoggingFilter) JmsMBeanImpl(org.apache.karaf.jms.internal.JmsMBeanImpl)

Aggregations

JmsMBeanImpl (org.apache.karaf.jms.internal.JmsMBeanImpl)1 JmsServiceImpl (org.apache.karaf.jms.internal.JmsServiceImpl)1 RegexCommandLoggingFilter (org.apache.karaf.shell.support.RegexCommandLoggingFilter)1