Package org.jboss.aspects.remoting.test.common

Examples of org.jboss.aspects.remoting.test.common.RemoteKernelController


      // For some reason surefire finds the wrong jndi.properties, so we specify the factory here.
      props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
     
      InitialContext ctx = new InitialContext(props);
      RemoteKernelController controller = (RemoteKernelController) ctx.lookup("RemoteKernelController");
      System.out.println(controller);
     
      AbstractBeanMetaData bmd = new AbstractBeanMetaData("VMIdentifier", VMIdentifierImpl.class.getName());
      controller.install(bmd);
     
      VMIdentifier identifierHere = new VMIdentifierImpl();
     
      VMID firstHere = identifierHere.getCurrentVMID();
      VMID secondHere = identifierHere.getCurrentVMID();
View Full Code Here

TOP

Related Classes of org.jboss.aspects.remoting.test.common.RemoteKernelController

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.