Package org.omg.CosNaming

Examples of org.omg.CosNaming.NamingContext.rebind()


                    } catch (NotFound nf) {
                        currentContext = currentContext.bind_new_context(nc);
                    }
                }
                nc[0] = nameComponent[lastComponent];
                currentContext.rebind(nc, homeReference);
            }
        } catch (Exception e) {
            throw new CORBAException(e);
        }
View Full Code Here


         }
         catch (NotFound e) {
            intermediateCtx = intermediateCtx.bind_new_context(relativeName);
         }
      }
      intermediateCtx.rebind(new NameComponent[] { name[name.length - 1] },
                             obj);
   }

   /**
    * Returns the name of a home servant for an EJB with the given jndiName.
View Full Code Here

                        intermediateCtx.resolve(relativeName));
            } catch (NotFound e) {
                intermediateCtx = intermediateCtx.bind_new_context(relativeName);
            }
        }
        intermediateCtx.rebind(new NameComponent[]{name[name.length - 1]}, obj);
    }

    /**
     * Returns the name of a home servant for an EJB with the given jndiName.
     * The home servant will be bound to this name in a ServantRegistry.
View Full Code Here

        org.omg.CORBA.Object initServ = _orb.orb().resolve_initial_references(Services.nameService);
        NamingContext rootContext = NamingContextHelper.narrow(initServ);
        NameComponent[] contextName = new NameComponent[1];
        contextName[0] = new NameComponent(serviceName, kind);
     
        rootContext.rebind(contextName, objRef);

                    if (opLogger.logger.isDebugEnabled())
                    {
                        opLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC,
                                              FacilityCode.FAC_ORB_PORTABILITY, "Services.registerService - object "+serviceName+" registered with name service.");
View Full Code Here

            NameComponent [] name = new NameComponent[1];
            name[0] = new NameComponent( "WhiteBoard", "Factory");

            // an Namen binden
            nc.rebind(name, cob);
            _poa.the_POAManager().activate();

            System.out.println("Whiteboard online !");

            boolean non_exist = false;
View Full Code Here

            NameComponent [] name = new NameComponent[1];
            name[0] = new NameComponent( "WhiteBoard", "Factory");

            // an Namen binden
            nc.rebind(name, cob);
            _poa.the_POAManager().activate();

            System.out.println("Whiteboard online !");

            boolean non_exist = false;
View Full Code Here

                        intermediateCtx.resolve(relativeName));
            } catch (NotFound e) {
                intermediateCtx = intermediateCtx.bind_new_context(relativeName);
            }
        }
        intermediateCtx.rebind(new NameComponent[]{name[name.length - 1]}, obj);
    }

    /**
     * Returns the name of a home servant for an EJB with the given jndiName.
     * The home servant will be bound to this name in a ServantRegistry.
View Full Code Here

/*     */       catch (NotFound e)
/*     */       {
/* 857 */         intermediateCtx = intermediateCtx.bind_new_context(relativeName);
/*     */       }
/*     */     }
/* 860 */     intermediateCtx.rebind(new NameComponent[] { name[(name.length - 1)] }, obj);
/*     */   }
/*     */
/*     */   private static String homeServantName(String jndiName)
/*     */   {
/* 870 */     return "EJBHome/" + jndiName;
View Full Code Here

/*     */       catch (NotFound e)
/*     */       {
/* 225 */         intermediateCtx = intermediateCtx.bind_new_context(relativeName);
/*     */       }
/*     */     }
/* 228 */     intermediateCtx.rebind(new NameComponent[] { name[(name.length - 1)] }, obj);
/*     */   }
/*     */
/*     */   private void removeWebClassLoader() throws MalformedObjectNameException
/*     */   {
/* 233 */     getWebServer().removeClassLoader(this.wcl);
View Full Code Here

                    } catch (NotFound nf) {
                        currentContext = currentContext.bind_new_context(nc);
                    }
                }
                nc[0] = nameComponent[lastComponent];
                currentContext.rebind(nc, homeReference);
            }
        } catch (Exception e) {
            throw new CORBAException("Unable to activate EJB as CORBA object.", e);
        }
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.