Package org.glassfish.api.naming

Examples of org.glassfish.api.naming.GlassfishNamingManager


                                tempProtocolManager.initializePOAs();

                                // Now make protocol manager visible.
                                protocolManager = tempProtocolManager;
                               
                                GlassfishNamingManager namingManager =
                                    glassfishNamingManagerProvider.get();

                                Remote remoteSerialProvider =
                                    namingManager.initializeRemoteNamingSupport(orb);

                                protocolManager.initializeRemoteNaming(remoteSerialProvider);
                            }
                        }
                    } catch(Exception e) {
View Full Code Here


        }
        return mEJBHome;
    }

    private void unpublishJndiNames() throws NamingException {
        GlassfishNamingManager gfNamingManager = habitat.getService(GlassfishNamingManager.class);
        for (String next : getJndiNames()) {
            gfNamingManager.unpublishObject(next);
        }
    }
View Full Code Here

    private static final Logger _logger = LogDomains.getLogger(
        MEJBService.class, LogDomains.EJB_LOGGER);
 
    public void postConstruct() {
        GlassfishNamingManager gfNamingManager =
            gfNamingManagerProvider.get();

        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

        if (gotAllNamedProxies.get() != habitat) {
            if (habitat != null) {
                synchronized (gotAllNamedProxies) {
                    if (gotAllNamedProxies.get() != habitat) {
                        proxies.clear();
                        GlassfishNamingManager nm =
                                habitat.getByContract(GlassfishNamingManager.class);
                        for (NamedNamingObjectProxy proxy : habitat.getAllByContract(NamedNamingObjectProxy.class)) {
                            //System.out.println("Got NamedNamingObjectProxy: " + proxy.getClass().getName());
                            proxies.add(proxy);
                        }
View Full Code Here

                                tempProtocolManager.initializePOAs();

                                // Now make protocol manager visible.
                                protocolManager = tempProtocolManager;
                               
                                GlassfishNamingManager namingManager =
                                    habitat.getByContract(GlassfishNamingManager.class);

                                Remote remoteSerialProvider =
                                    namingManager.initializeRemoteNamingSupport(orb);

                                protocolManager.initializeRemoteNaming(remoteSerialProvider);
                            }
                        }
                    } catch(Exception e) {
View Full Code Here

                                tempProtocolManager.initializePOAs();

                                // Now make protocol manager visible.
                                protocolManager = tempProtocolManager;
                               
                                GlassfishNamingManager namingManager =
                                    habitat.getByContract(GlassfishNamingManager.class);

                                Remote remoteSerialProvider =
                                    namingManager.initializeRemoteNamingSupport(orb);

                                protocolManager.initializeRemoteNaming(remoteSerialProvider);
                            }
                        }
                    } catch(Exception e) {
View Full Code Here

            // initializing in *this* thread before getting returned by the
            // getComponent() call below.
            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

    public com.sun.enterprise.config.serverbeans.Server getConfigBean() {
        return services.getService(com.sun.enterprise.config.serverbeans.Server.class);
    }

    public InitialContext getInitialContext() {
        GlassfishNamingManager gfNamingManager =
            services.getService(GlassfishNamingManager.class);
        return (InitialContext)gfNamingManager.getInitialContext();
    }
View Full Code Here

    public com.sun.enterprise.config.serverbeans.Server getConfigBean() {
        return habitat.getComponent(com.sun.enterprise.config.serverbeans.Server.class);
    }

    public InitialContext getInitialContext() {
        GlassfishNamingManager gfNamingManager =
            habitat.getComponent(GlassfishNamingManager.class);
        return (InitialContext)gfNamingManager.getInitialContext();
    }
View Full Code Here

    private static final Logger _logger = LogDomains.getLogger(
        MEJBService.class, LogDomains.EJB_LOGGER);
 
    public void postConstruct() {
        GlassfishNamingManager gfNamingManager =
            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

TOP

Related Classes of org.glassfish.api.naming.GlassfishNamingManager

Copyright © 2018 www.massapicom. 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.