Examples of NameService


Examples of com.arjuna.ats.arjuna.gandiva.nameservice.NameService

public class JNSTest
{
   
public static void main (String[] args)
    {
  NameService nameService = new NameService(ArjunaNames.Implementation_NameService_JNS());

  try
  {
      String longAttr = new String("LONG");
      long lvalue = nameService.getLongAttribute(null, longAttr);

      System.out.println("Long value: "+lvalue);

      String stringAttr = new String("STRING");
      String svalue = nameService.getStringAttribute(null, stringAttr);

      System.out.println("String value: "+svalue);
  }
  catch (IOException e)
  {
View Full Code Here

Examples of com.arjuna.ats.arjuna.gandiva.nameservice.NameService

  if (objectName._mech != null)
  {
      _mech = new String(objectName._mech);

      if (objectName._nameService != null)
    _nameService = new NameService(objectName._nameService);
  }

  if (objectName._name != null)
      _name = new String(objectName._name);
View Full Code Here

Examples of com.arjuna.ats.arjuna.gandiva.nameservice.NameService

     * specified.
     */

public static ObjectName uniqueObjectName (String mech) throws NullPointerException, IOException
    {
  NameService nameService = null;
  ObjectName objectName = ObjectName.invalid();

  if ((mech != null) && (mech.compareTo(_invalidString) != 0))
  {
      String nameServiceMech = mech + nameServiceString;
      ClassName nameServiceMechClassName = new ClassName(nameServiceMech);
      nameService = NameService.create(nameServiceMechClassName);

      if (nameService != null)
    objectName = nameService.uniqueObjectName();
     
      nameService = null;
  }

  return objectName;
View Full Code Here

Examples of com.arjuna.ats.arjuna.gandiva.nameservice.NameService

/*     */   }
/*     */
/*     */   public static ObjectName uniqueObjectName(String mech)
/*     */     throws NullPointerException, IOException
/*     */   {
/* 377 */     NameService nameService = null;
/* 378 */     ObjectName objectName = invalid();
/*     */
/* 380 */     if ((mech != null) && (mech.compareTo("invalid") != 0))
/*     */     {
/* 382 */       String nameServiceMech = mech + "NameServiceImple";
/* 383 */       ClassName nameServiceMechClassName = new ClassName(nameServiceMech);
/* 384 */       nameService = NameService.create(nameServiceMechClassName);
/*     */
/* 386 */       if (nameService != null) {
/* 387 */         objectName = nameService.uniqueObjectName();
/*     */       }
/* 389 */       nameService = null;
/*     */     }
/*     */
/* 392 */     return objectName;
View Full Code Here

Examples of com.arjuna.ats.arjuna.gandiva.nameservice.NameService

/* 408 */     if (objectName._mech != null)
/*     */     {
/* 410 */       this._mech = new String(objectName._mech);
/*     */
/* 412 */       if (objectName._nameService != null) {
/* 413 */         this._nameService = new NameService(objectName._nameService);
/*     */       }
/*     */     }
/* 416 */     if (objectName._name != null) {
/* 417 */       this._name = new String(objectName._name);
/*     */     }
View Full Code Here

Examples of com.arjuna.ats.arjuna.gandiva.nameservice.NameService

     * specified.
     */

public static ObjectName uniqueObjectName (String mech) throws NullPointerException, IOException
    {
  NameService nameService = null;
  ObjectName objectName = ObjectName.invalid();

  if ((mech != null) && (mech.compareTo(_invalidString) != 0))
  {
      String nameServiceMech = mech + nameServiceString;
      ClassName nameServiceMechClassName = new ClassName(nameServiceMech);
      nameService = NameService.create(nameServiceMechClassName);

      if (nameService != null)
    objectName = nameService.uniqueObjectName();
     
      nameService = null;
  }

  return objectName;
View Full Code Here

Examples of com.arjuna.ats.arjuna.gandiva.nameservice.NameService

  if (objectName._mech != null)
  {
      _mech = new String(objectName._mech);

      if (objectName._nameService != null)
    _nameService = new NameService(objectName._nameService);
  }

  if (objectName._name != null)
      _name = new String(objectName._name);
View Full Code Here

Examples of com.sun.corba.se.impl.naming.pcosnaming.NameService

    public void run( )
    {
        try {
            // start Name Service
            NameService nameService = new NameService(orb, dbDir );
            NamingContext rootContext = nameService.initialNamingContext();
            orb.register_initial_reference(
                ORBConstants.PERSISTENT_NAME_SERVICE_NAME, rootContext );
        } catch( Exception e ) {
            System.err.println(
                "NameService did not start successfully" );
View Full Code Here

Examples of com.sun.corba.se.impl.naming.pcosnaming.NameService

    public void run( )
    {
        try {
            // start Name Service
            NameService nameService = new NameService(orb, dbDir );
            NamingContext rootContext = nameService.initialNamingContext();
            orb.register_initial_reference(
                ORBConstants.PERSISTENT_NAME_SERVICE_NAME, rootContext );
        } catch( Exception e ) {
            System.err.println(
                "NameService did not start successfully" );
View Full Code Here

Examples of gcc.naming.NameService

        Thread t = new Thread( id );
        t.setName( id.getName() + " Daemon" );
        t.start();

        NameService ns = NameService.getInstance();
        AdapterManager am = AdapterManager.getInstance();

        //
        // NameService
        //
        Adapter a = new Adapter();
        a.setBindName( "NameService" );
        a.setRemoteClassName( "gcc.rmi.iiop.server.ServerNamingContext" );
        a.setRemoteInterfaceName( "gcc.rmi.iiop.NameServiceOperations" );
        a.setShared( true );
        a.addId( "IDL:gcc/rmi/iiop/NameService:1.0" );
        a.addId( "IDL:omg.org/CosNaming/NamingContext:1.0" );
        a.addId( "IDL:omg.org/CosNaming/NamingContextExt:1.0" );
        a.addId( "NameService" ); // this gets passed in by the J2SE 1.4 ORB
        a.setClassLoader( id.getClass().getClassLoader() );
        //a.generateSkels();
        //a.compileSkels();

        am.registerAdapter( a );
        ns.bindAdapter( a );

        //
        // Component
        //
        a = new Adapter();
        a.setBindName( "mark.comps.Add" );
        a.setRemoteClassName( "mark.comps.AddImpl" );
        a.setRemoteInterfaceName( "mark.comps.Add" );
        a.addId( "RMI:mark.comps.Add:0000000000000000" );
        a.setClassLoader( id.getClass().getClassLoader() );

        am.registerAdapter( a );
        ns.bindAdapter( a );

        //
        // Component
        //
        a = new Adapter();
        a.setBindName( "mark.comps.Add2" );
        a.setRemoteClassName( "mark.comps.Add2Impl" );
        a.setRemoteInterfaceName( "mark.comps.Add2" );
        a.addId( "RMI:mark.comps.Add2:0000000000000000" );
        a.setClassLoader( id.getClass().getClassLoader() );

        am.registerAdapter( a );
        ns.bindAdapter( a );
    }
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.