public Object getObject() throws javax.naming.NamingException { try { return ConnectionFactory.newInstance(); } catch (JAXRException e) { throw new NamingException("Error creating JaxR ConnectionFactory", e); } } }
@SuppressWarnings("UseOfObsoleteCollectionType") private void initializeOpenEJB(final Hashtable env) throws javax.naming.NamingException { try { final Properties props = new Properties(); /* DMB: We should get the defaults from the functionality * Alan is working on. This is temporary. * When that logic is finished, this block should * probably just be deleted. */ props.put(EnvProps.ASSEMBLER, "org.apache.openejb.assembler.classic.Assembler"); props.put(EnvProps.CONFIGURATION_FACTORY, "org.apache.openejb.config.ConfigurationFactory"); props.put(EnvProps.CONFIGURATION, "conf/default.openejb.conf"); props.putAll(SystemInstance.get().getProperties()); props.putAll(env); OpenEJB.init(props); } catch (final OpenEJBException e) { throw new NamingException("Cannot initailize OpenEJB", e); } catch (final Exception e) { throw new NamingException("Cannot initailize OpenEJB", e); } }
public Object getObject() throws javax.naming.NamingException { Object o = super.getObject(); try { o = copy(o); } catch (final Exception e) { throw new NamingException("Error copying object into local class loader", e); } return o; }
private void initializeOpenEJB(Hashtable env) throws javax.naming.NamingException { try { Properties props = new Properties(); /* DMB: We should get the defaults from the functionality * Alan is working on. This is temporary. * When that logic is finished, this block should * probably just be deleted. */ props.put(EnvProps.ASSEMBLER, "org.apache.openejb.assembler.classic.Assembler"); props.put(EnvProps.CONFIGURATION_FACTORY, "org.apache.openejb.config.ConfigurationFactory"); props.put(EnvProps.CONFIGURATION, "conf/default.openejb.conf"); props.putAll(SystemInstance.get().getProperties()); props.putAll(env); org.apache.openejb.OpenEJB.init(props); } catch (org.apache.openejb.OpenEJBException e) { throw new NamingException("Cannot initailize OpenEJB", e); } catch (Exception e) { throw new NamingException("Cannot initailize OpenEJB", e); } }
public Object getObject() throws javax.naming.NamingException { Object o = super.getObject(); try { o = copy(o); } catch (final Exception e) { throw new NamingException("Error copying object into local class loader", e); } return o; }
public Object getObject() throws javax.naming.NamingException { Object o = super.getObject(); try { o = copy(o); } catch (Exception e) { throw new NamingException("Error copying object into local class loader", e); } return o; }
@SuppressWarnings("UseOfObsoleteCollectionType") private void initializeOpenEJB(final Hashtable env) throws javax.naming.NamingException { try { final Properties props = new Properties(); /* DMB: We should get the defaults from the functionality * Alan is working on. This is temporary. * When that logic is finished, this block should * probably just be deleted. */ props.put(EnvProps.ASSEMBLER, "org.apache.openejb.assembler.classic.Assembler"); props.put(EnvProps.CONFIGURATION_FACTORY, "org.apache.openejb.config.ConfigurationFactory"); props.put(EnvProps.CONFIGURATION, "conf/default.openejb.conf"); props.putAll(SystemInstance.get().getProperties()); props.putAll(env); OpenEJB.init(props); } catch (final Exception e) { throw new NamingException("Cannot initailize OpenEJB", e); } }