service.setProxyManager(proxyManager);
Hashtable<String, String> props = new Hashtable<String, String>();
// bind the JNDI service itself in the JNDI context
props.put("osgi.jndi.service.name", "jndi");
register(JndiService.class, service, props);
JndiMBeanImpl mbean = new JndiMBeanImpl();
mbean.setJndiService(service);
registerMBean(mbean, "type=jndi");
}