Examples of publishObject()


Examples of com.sun.appserv.connectors.internal.api.ResourceNamingService.publishObject()

            if(dsd.getName().startsWith(ConnectorConstants.JAVA_GLOBAL_SCOPE_PREFIX)
                    /*|| next.getName().startsWith("java:module/")*/
                    || dsd.getName().startsWith(ConnectorConstants.JAVA_APP_SCOPE_PREFIX)){
                ResourceInfo resourceInfo = new ResourceInfo(dsd.getName(), appName, moduleName);
                try {
                    resourceNamingService.publishObject(resourceInfo, proxy, true);
                    dsd.setDeployed(true);
                } catch (NamingException e) {
                    Object params[] = new Object[]{appName, dsd.getName(), e};
                    _logger.log(Level.WARNING, "dsd.registration.failed", params);   
                }
View Full Code Here

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

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

      }
      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

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

        // 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

Examples of org.glassfish.api.naming.GlassfishNamingManager.publishObject()

        MEJBNamingObjectProxy mejbProxy =
            new MEJBNamingObjectProxy(habitat);
        for(String next : MEJBNamingObjectProxy.getJndiNames()) {
            try {
                gfNamingManager.publishObject(next, mejbProxy, true);
            } catch (Exception e) {
                _logger.log(Level.WARNING, "Problem in publishing temp proxy for MEJB: " +
                    e.getMessage(), e);
            }
        }
View Full Code Here

Examples of org.glassfish.api.naming.GlassfishNamingManager.publishObject()

            es.submit(new Runnable() {
                @Override
                public void run() {
                    GlassfishNamingManager namingMgr = h.getComponent(GlassfishNamingManager.class);
                    try {
                        namingMgr.publishObject(USER_TX_NO_JAVA_COMP,
                            new UserTransactionProxy(), true);
                    } catch (NamingException e) {
                       logger.warning("Can't bind \"UserTransaction\" in JNDI");
                    }
                }
View Full Code Here

Examples of org.glassfish.api.naming.GlassfishNamingManager.publishObject()

            habitat.getComponent(GlassfishNamingManager.class);
        MEJBNamingObjectProxy mejbProxy =
            new MEJBNamingObjectProxy(habitat);
        for(String next : MEJBNamingObjectProxy.getJndiNames()) {
            try {
                gfNamingManager.publishObject(next, mejbProxy, true);
            } catch (Exception e) {
                _logger.log(Level.WARNING, "Problem in publishing temp proxy for MEJB: " +
                    e.getMessage(), e);
            }
        }
View Full Code Here

Examples of org.glassfish.resourcebase.resources.naming.ResourceNamingService.publishObject()

            if(dsdName.startsWith(ConnectorConstants.JAVA_GLOBAL_SCOPE_PREFIX)
                    /*|| next.getName().startsWith("java:module/")*/
                    || dsdName.startsWith(ConnectorConstants.JAVA_APP_SCOPE_PREFIX)){
                ResourceInfo resourceInfo = new ResourceInfo(dsdName, appName, null);
                try {
                    resourceNamingService.publishObject(resourceInfo, proxy, true);
                    dsd.setDeployed(true);
                } catch (NamingException e) {
                    Object params[] = new Object[]{appName, dsdName, e};
                    _logger.log(Level.WARNING, "dsd.registration.failed", params);   
                }
View Full Code Here

Examples of org.glassfish.resourcebase.resources.naming.ResourceNamingService.publishObject()

            if(dsdName.startsWith(ConnectorConstants.JAVA_GLOBAL_SCOPE_PREFIX)
                    /*|| next.getName().startsWith("java:module/")*/
                    || dsdName.startsWith(ConnectorConstants.JAVA_APP_SCOPE_PREFIX)){
                ResourceInfo resourceInfo = new ResourceInfo(dsdName, appName, null);
                try {
                    resourceNamingService.publishObject(resourceInfo, proxy, true);
                    dsd.setDeployed(true);
                } catch (NamingException e) {
                    Object params[] = new Object[]{appName, dsdName, e};
                    _logger.log(Level.WARNING, "dsd.registration.failed", params);   
                }
View Full Code Here

Examples of org.glassfish.resourcebase.resources.naming.ResourceNamingService.publishObject()

            if(dsdName.startsWith(ConnectorConstants.JAVA_GLOBAL_SCOPE_PREFIX)
                    /*|| next.getName().startsWith("java:module/")*/
                    || dsdName.startsWith(ConnectorConstants.JAVA_APP_SCOPE_PREFIX)){
                ResourceInfo resourceInfo = new ResourceInfo(dsdName, appName, null);
                try {
                    resourceNamingService.publishObject(resourceInfo, proxy, true);
                    dsd.setDeployed(true);
                } catch (NamingException e) {
                    Object params[] = new Object[]{appName, dsdName, e};
                    _logger.log(Level.WARNING, "dsd.registration.failed", params);   
                }
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.