Package org.hibernate.engine.jndi

Examples of org.hibernate.engine.jndi.JndiException


    Name name = parseName( jndiName, initialContext );
    try {
      initialContext.unbind( name );
    }
    catch (Exception e) {
      throw new JndiException( "Error performing unbind [" + name + "]", e );
    }
    finally {
      cleanUp( initialContext );
    }
  }
View Full Code Here


    Name name = parseName( jndiName, initialContext );
    try {
      ( (EventContext) initialContext ).addNamingListener( name, EventContext.OBJECT_SCOPE, listener );
    }
    catch (Exception e) {
      throw new JndiException( "Unable to bind listener to namespace [" + name + "]", e );
    }
    finally {
      cleanUp( initialContext );
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.engine.jndi.JndiException

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.