Java Code Examples for gnu.CORBA.NamingService.NamingServiceTransient

The following are top voted examples for showing how to use gnu.CORBA.NamingService.NamingServiceTransient. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: javify   File: OrbFunctional.java   Source Code and License 6 votes vote down vote up
/**
 * 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 6 votes vote down vote up
/**
 * 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 6 votes vote down vote up
/**
 * 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 6 votes vote down vote up
/**
 * 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 5
Project: javify   File: Main.java   Source Code and License 4 votes vote down vote up
private void run(String[] args)
{
  Parser p = initializeParser();
  p.parse(args);
  NamingServiceTransient.start(port, iorf);
}
 
Example 6
Project: jvm-stm   File: Main.java   Source Code and License 4 votes vote down vote up
private void run(String[] args)
{
  Parser p = initializeParser();
  p.parse(args);
  NamingServiceTransient.start(port, iorf);
}
 
Example 7
Project: JamVM-PH   File: Main.java   Source Code and License 4 votes vote down vote up
private void run(String[] args)
{
  Parser p = initializeParser();
  p.parse(args);
  NamingServiceTransient.start(port, iorf);
}
 
Example 8
Project: classpath   File: Main.java   Source Code and License 4 votes vote down vote up
private void run(String[] args)
{
  Parser p = initializeParser();
  p.parse(args);
  NamingServiceTransient.start(port, iorf);
}