Package fr.dyade.aaa.jndi2.impl

Examples of fr.dyade.aaa.jndi2.impl.CreateSubcontextEvent


  public static NamingConnection getNamingConnection(
    Hashtable env)
    throws NamingException {   
    try {
      NamingConnection namingConnection;
     
      // URL should be as: hascn://host:port
      String url = getEnvProperty(env, "hascn.naming.provider.url");
     
      if (url == null) {
View Full Code Here


      // clone env to be able to change it.
      myEnv = (Hashtable)env.clone();

      String factoryClassName = (String)myEnv.get("scn.naming.factory.class");
      if (factoryClassName == null) {
        namingFactory = new NamingContextFactory();
      } else {
        try {
          Class factoryClass = Class.forName(factoryClassName);
          namingFactory =
            (InitialContextFactory)factoryClass.newInstance();
View Full Code Here

      ReplicationManager manager =
        new ReplicationManager(serverIds);

      AgentEntryPoint agentEP = new AgentEntryPoint();   
      agentEP.setRequestManager(manager);
      ReplicationEntryPoint replicationEP = new ReplicationEntryPoint();   
      replicationEP.setRequestManager(manager);

      HARequestManager haManager = new HARequestManager();
      haManager.setRequestManager(manager);
      HAEntryPoint haEP = new HAEntryPoint();
      haEP.setHARequestManager(haManager);
View Full Code Here

      3,
      getDefault());
    tcpServer.start();

    if (firstTime) {
      ReplicationManager manager =
        new ReplicationManager(serverIds);

      AgentEntryPoint agentEP = new AgentEntryPoint();   
      agentEP.setRequestManager(manager);
      ReplicationEntryPoint replicationEP = new ReplicationEntryPoint();   
      replicationEP.setRequestManager(manager);

      HARequestManager haManager = new HARequestManager();
      haManager.setRequestManager(manager);
      HAEntryPoint haEP = new HAEntryPoint();
      haEP.setHARequestManager(haManager);

      Container container = new Container();   
      container.addEntryPoint(agentEP);
      container.addEntryPoint(replicationEP);
      container.addEntryPoint(haEP);
      container.setLifeCycleListener(haManager);
      container.setBagSerializer(haManager);
      manager.setContainer(container);
      container.deploy();
    }
  }
View Full Code Here

      // clone env to be able to change it.
      myEnv = (Hashtable)env.clone();

      String factoryClassName = (String)myEnv.get("hascn.naming.factory.class");
      if (factoryClassName == null) {
        namingFactory = new HANamingContextFactory();
      } else {
        try {
          Class factoryClass = Class.forName(factoryClassName);
          namingFactory =
            (InitialContextFactory)factoryClass.newInstance();
View Full Code Here

                                                            evt.getUpdatedContextId()),
                                                            evt.getName(),
                                                            evt.getObject(),
                                                            from);
    }else{
      NamingContext  nc= getServerImpl().getNamingContext(evt.getPath());
      getServerImpl().bind(
                           nc,
                           evt.getName(),
                           evt.getObject(),
                           from);
View Full Code Here

                                                              evt.getUpdatedContextId()),
                                                              evt.getName(),
                                                              evt.getObject(),
                                                              from);
    }else{
      NamingContext  nc= getServerImpl().getNamingContext(evt.getPath());
      getServerImpl().rebind(
                             nc,
                             evt.getName(),
                             evt.getObject(),
                             from);
View Full Code Here

                             getServerImpl().getNamingContext(
                                                              evt.getUpdatedContextId()),
                                                              evt.getName(),
                                                              from);
    }else{
      NamingContext  nc= getServerImpl().getNamingContext(evt.getPath());
      getServerImpl().unbind(
                             nc,
                             evt.getName(),
                             from);
    }
View Full Code Here

                                                                        evt.getOwnerId(),
                                                                        from);
    }else{
      CompositeName parentPath = (CompositeName) evt.getPath().clone();   
      parentPath.remove(parentPath.size() - 1);
      NamingContext  nc= getServerImpl().getNamingContext(parentPath);
      getServerImpl().createSubcontext(nc,
                                       evt.getName(),
                                       evt.getPath(),
                                       evt.getContextId(),
                                       getId(),
View Full Code Here

                                                                         evt.getPath(),
                                                                         from);
    }else{
      CompositeName parentPath = (CompositeName) evt.getPath().clone();   
      parentPath.remove(parentPath.size() - 1);
      NamingContext  nc= getServerImpl().getNamingContext(parentPath);
      getServerImpl().destroySubcontext(
                                        nc,
                                        evt.getName(),
                                        evt.getPath(),
                                        from);
View Full Code Here

TOP

Related Classes of fr.dyade.aaa.jndi2.impl.CreateSubcontextEvent

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.