Examples of JndiServiceImpl


Examples of org.apache.karaf.jndi.internal.JndiServiceImpl

    protected void doStart() throws Exception {
        ProxyManager proxyManager = getTrackedService(ProxyManager.class);

        register(InitialContextFactory.class, new KarafInitialContextFactory());

        JndiServiceImpl service = new JndiServiceImpl();
        service.setBundleContext(bundleContext);
        service.setProxyManager(proxyManager);
        Hashtable<String, String> props = new Hashtable<String, String>();
        // bind the JNDI service itself in the JNDI context
        props.put("osgi.jndi.service.name", "jndi");
        register(JndiService.class, service, props);
        JndiMBeanImpl mbean = new JndiMBeanImpl();
View Full Code Here

Examples of org.hibernate.service.jndi.internal.JndiServiceImpl

    }
    else {
            LOG.ejb3ConfigurationName( name );

      // todo : instantiating the JndiService here is temporary until HHH-6159 is resolved.
      JndiServiceImpl jndiService = new JndiServiceImpl( cfg.getProperties() );
      try {
        jndiService.bind( name, cfg );
        LOG.boundEjb3ConfigurationToJndiName( name );
        try {
          jndiService.addListener( name, LISTENER );
        }
        catch (Exception e) {
          LOG.couldNotBindJndiListener();
        }
      }
View Full Code Here

Examples of org.hibernate.service.jndi.internal.JndiServiceImpl

    }
    catch (Exception e) {
      throw new AssertionFailure("Could not generate UUID");
    }

    SessionFactoryRegistry.INSTANCE.addSessionFactory( uuid, name, this, new JndiServiceImpl( service.getProperties() )  );
  }
View Full Code Here

Examples of org.hibernate.service.jndi.internal.JndiServiceImpl

            AvailableSettings.SESSION_FACTORY_NAME_IS_JNDI,
            service.getProperties(),
            true
        ),
        this,
        new JndiServiceImpl( service.getProperties() )
    );
  }
View Full Code Here

Examples of org.hibernate.service.jndi.internal.JndiServiceImpl

    }
    catch (Exception e) {
      throw new AssertionFailure("Could not generate UUID");
    }

    SessionFactoryRegistry.INSTANCE.addSessionFactory( uuid, name, this, new JndiServiceImpl( service.getProperties() )  );
  }
View Full Code Here

Examples of org.hibernate.service.jndi.internal.JndiServiceImpl

    }
    catch (Exception e) {
      throw new AssertionFailure("Could not generate UUID");
    }

    SessionFactoryRegistry.INSTANCE.addSessionFactory( uuid, name, this, new JndiServiceImpl( service.getProperties() )  );
  }
View Full Code Here

Examples of org.hibernate.service.jndi.internal.JndiServiceImpl

    }
    catch (Exception e) {
      throw new AssertionFailure("Could not generate UUID");
    }

    SessionFactoryRegistry.INSTANCE.addSessionFactory( uuid, name, this, new JndiServiceImpl( service.getProperties() )  );
  }
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.