Package com.sun.enterprise

Examples of com.sun.enterprise.NamingManager.publishObject()


      if (LOGGER.isLoggable(Level.FINER)) {
        LOGGER.log(Level.FINER, "Publishing the object " + jndiName1);
      }
      Object o1 = OverloadFactoryImpl.newInstance(jndiName1,
          org.glassfish.comms.api.overload.OverloadNotifier.class);
      namingManager.publishObject(jndiName1, o1, true);

      String jndiName2 = OverloadDetectionRegistrar.class.getName();
      if (LOGGER.isLoggable(Level.FINER)) {
        LOGGER.log(Level.FINER, "Publishing the object " + jndiName2);
      }
View Full Code Here


      }
      Object o2 = OverloadFactoryImpl
          .newInstance(
              jndiName1,
              org.glassfish.comms.api.overload.OverloadDetectionRegistrar.class);
      namingManager.publishObject(jndiName2, o2, true);
    } catch (NamingException ne) {
      ne.printStackTrace();
    }
  }
 
View Full Code Here

        // bind to JNDI namespace
  try{

            Reference ref = aor.createAdminObjectReference();
            NamingManager nm = Switch.getSwitch().getNamingManager();
            nm.publishObject(jndiName, ref, true);

        } catch (NamingException ex) {
      String i18nMsg = localStrings.getString(
          "aira.cannot_bind_admin_obj");
            throw new ConnectorRuntimeException( i18nMsg );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.