Package org.hibernate.service.jndi

Examples of org.hibernate.service.jndi.JndiNameException


  private Name parseName(String jndiName, Context context) {
    try {
      return context.getNameParser( "" ).parse( jndiName );
    }
    catch ( InvalidNameException e ) {
      throw new JndiNameException( "JNDI name [" + jndiName + "] was not valid", e );
    }
    catch ( NamingException e ) {
      throw new JndiException( "Error parsing JNDI name [" + jndiName + "]", e );
    }
  }
View Full Code Here


  private Name parseName(String jndiName, Context context) {
    try {
      return context.getNameParser( "" ).parse( jndiName );
    }
    catch ( InvalidNameException e ) {
      throw new JndiNameException( "JNDI name [" + jndiName + "] was not valid", e );
    }
    catch ( NamingException e ) {
      throw new JndiException( "Error parsing JNDI name [" + jndiName + "]", e );
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.service.jndi.JndiNameException

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.