use of org.apache.karaf.jdbc.internal.JdbcMBeanImpl in project karaf by apache.
the class Activator method doStart.
@Override
protected void doStart() throws Exception {
ConfigurationAdmin configurationAdmin = getTrackedService(ConfigurationAdmin.class);
JdbcServiceImpl service = new JdbcServiceImpl();
service.setBundleContext(bundleContext);
service.setConfigAdmin(configurationAdmin);
register(JdbcService.class, service);
JdbcMBeanImpl mbean = new JdbcMBeanImpl();
mbean.setJdbcService(service);
registerMBean(mbean, "type=jdbc");
}
Aggregations