Package org.jboss.naming

Examples of org.jboss.naming.JavaCompInitializer


     
      Hashtable ctxProperties = new Hashtable();
      ctxProperties.put("java.naming.factory.initial", "org.jnp.interfaces.LocalOnlyContextFactory");
      ctxProperties.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
     
      JavaCompInitializer initializer = new JavaCompInitializer();
      initializer.setInitialContextProperties(ctxProperties);
      initializer.start();

      new EJBContextBinder().start();
     
      DummyTransactionManager tm = new DummyTransactionManager();
      InitialContext ic = new InitialContext(ctxProperties);
View Full Code Here


     
      Hashtable ctxProperties = new Hashtable();
      ctxProperties.put("java.naming.factory.initial", "org.jnp.interfaces.LocalOnlyContextFactory");
      ctxProperties.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
     
      JavaCompInitializer initializer = new JavaCompInitializer();
      initializer.setInitialContextProperties(ctxProperties);
      initializer.start();
     
      DummyTransactionManager tm = new DummyTransactionManager();
      InitialContext ic = new InitialContext(ctxProperties);
      ic.bind("java:/TransactionManager", tm);
     
View Full Code Here

TOP

Related Classes of org.jboss.naming.JavaCompInitializer

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.