public class NamingActivator implements BundleActivator
{
public void start(BundleContext context) throws Exception
{
ObjectInputOutputStreamFactoryFactory.setFactory(
new OSGiObjectInputOutputStreamFactoryImpl(context));
// force initialisation of NamingBuilder so that any naming operation will be redirected via
// our builder which is essential for issue #8458
Habitat habitat = Globals.getDefaultHabitat();
habitat.getComponent(GlassFishNamingBuilder.class);