public void start() throws HibernateException { boundName = getJndiName(); try { buildSessionFactory(); } catch (HibernateException he) { log.info( "Could not build SessionFactory using the MBean classpath - will try again using client classpath: " + he.getMessage() ); log.debug("Error was", he); new SessionFactoryStub(this); } }
public void start() throws HibernateException { boundName = getJndiName(); try { buildSessionFactory(); } catch (HibernateException he) { log.info( "Could not build SessionFactory using the MBean classpath - will try again using client classpath: " + he.getMessage() ); log.debug("Error was", he); new SessionFactoryStub(this); } }
SessionFactoryStub(HibernateService service) { this.service = service; this.name = service.getJndiName(); try { uuid = (String) UUID_GENERATOR.generate(null, null); } catch (Exception e) { throw new AssertionFailure("Could not generate UUID"); } SessionFactoryObjectFactory.addInstance( uuid, name, this, service.getProperties() ); }
SessionFactoryStub(HibernateService service) { this.service = service; this.name = service.getJndiName(); try { uuid = (String) UUID_GENERATOR.generate(null, null); } catch (Exception e) { throw new AssertionFailure("Could not generate UUID"); } SessionFactoryObjectFactory.addInstance( uuid, name, this, service.getProperties() ); }
@Override public void start() throws HibernateException { boundName = getJndiName(); try { buildSessionFactory(); } catch (HibernateException he) { LOG.unableToBuildSessionFactoryUsingMBeanClasspath(he.getMessage()); LOG.debug("Error was", he); new SessionFactoryStub(this); } }
@Override public void start() throws HibernateException { boundName = getJndiName(); try { buildSessionFactory(); } catch (HibernateException he) { LOG.unableToBuildSessionFactoryUsingMBeanClasspath(he.getMessage()); LOG.debug("Error was", he); new SessionFactoryStub(this); } }
SessionFactoryStub(HibernateService service) { this.service = service; this.name = service.getJndiName(); try { uuid = (String) UUID_GENERATOR.generate(null, null); } catch (Exception e) { throw new AssertionFailure("Could not generate UUID"); } SessionFactoryRegistry.INSTANCE.addSessionFactory( uuid, name, ConfigurationHelper.getBoolean( AvailableSettings.SESSION_FACTORY_NAME_IS_JNDI, service.getProperties(), true ), this, new JndiServiceImpl( service.getProperties() ) ); }
SessionFactoryStub(HibernateService service) { this.service = service; this.name = service.getJndiName(); try { uuid = (String) UUID_GENERATOR.generate(null, null); } catch (Exception e) { throw new AssertionFailure("Could not generate UUID"); } SessionFactoryRegistry.INSTANCE.addSessionFactory( uuid, name, ConfigurationHelper.getBoolean( AvailableSettings.SESSION_FACTORY_NAME_IS_JNDI, service.getProperties(), true ), this, new JndiServiceImpl( service.getProperties() ) ); }