Java Code Examples for org.omg.CosNaming.NamingContextExtHelper.id()

The following are Jave code examples for showing how to use id() of the org.omg.CosNaming.NamingContextExtHelper class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: javify   File: OrbFunctional.java   Source Code and License Vote up 6 votes
/**
 * Get the default naming service for the case when there no NameService
 * entries.
 */
protected org.omg.CORBA.Object getDefaultNameService()
{
  if (initial_references.containsKey(NAME_SERVICE))
    return (org.omg.CORBA.Object) initial_references.get(NAME_SERVICE);

  IOR ior = new IOR();
  ior.Id = NamingContextExtHelper.id();
  ior.Internet.host = ns_host;
  ior.Internet.port = ns_port;
  ior.key = NamingServiceTransient.getDefaultKey();

  IorObject iorc = new IorObject(this, ior);
  NamingContextExt namer = NamingContextExtHelper.narrow(iorc);
  initial_references.put(NAME_SERVICE, namer);
  return namer;
}
 
Example 2
Project: jvm-stm   File: OrbFunctional.java   Source Code and License Vote up 6 votes
/**
 * Get the default naming service for the case when there no NameService
 * entries.
 */
protected org.omg.CORBA.Object getDefaultNameService()
{
  if (initial_references.containsKey(NAME_SERVICE))
    return (org.omg.CORBA.Object) initial_references.get(NAME_SERVICE);

  IOR ior = new IOR();
  ior.Id = NamingContextExtHelper.id();
  ior.Internet.host = ns_host;
  ior.Internet.port = ns_port;
  ior.key = NamingServiceTransient.getDefaultKey();

  IorObject iorc = new IorObject(this, ior);
  NamingContextExt namer = NamingContextExtHelper.narrow(iorc);
  initial_references.put(NAME_SERVICE, namer);
  return namer;
}
 
Example 3
Project: JamVM-PH   File: OrbFunctional.java   Source Code and License Vote up 6 votes
/**
 * Get the default naming service for the case when there no NameService
 * entries.
 */
protected org.omg.CORBA.Object getDefaultNameService()
{
  if (initial_references.containsKey(NAME_SERVICE))
    return (org.omg.CORBA.Object) initial_references.get(NAME_SERVICE);

  IOR ior = new IOR();
  ior.Id = NamingContextExtHelper.id();
  ior.Internet.host = ns_host;
  ior.Internet.port = ns_port;
  ior.key = NamingServiceTransient.getDefaultKey();

  IorObject iorc = new IorObject(this, ior);
  NamingContextExt namer = NamingContextExtHelper.narrow(iorc);
  initial_references.put(NAME_SERVICE, namer);
  return namer;
}
 
Example 4
Project: classpath   File: OrbFunctional.java   Source Code and License Vote up 6 votes
/**
 * Get the default naming service for the case when there no NameService
 * entries.
 */
protected org.omg.CORBA.Object getDefaultNameService()
{
  if (initial_references.containsKey(NAME_SERVICE))
    return (org.omg.CORBA.Object) initial_references.get(NAME_SERVICE);

  IOR ior = new IOR();
  ior.Id = NamingContextExtHelper.id();
  ior.Internet.host = ns_host;
  ior.Internet.port = ns_port;
  ior.key = NamingServiceTransient.getDefaultKey();

  IorObject iorc = new IorObject(this, ior);
  NamingContextExt namer = NamingContextExtHelper.narrow(iorc);
  initial_references.put(NAME_SERVICE, namer);
  return namer;
}