Package org.jboss.arquillian.persistence.core.exception

Examples of org.jboss.arquillian.persistence.core.exception.ContextNotAvailableException


      try
      {
         final Context context = contextInstance.get();
         if (context == null)
         {
            throw new ContextNotAvailableException("No Naming Context available.");
         }
         return (DataSource) context.lookup(dataSourceName);
      }
      catch (NamingException e)
      {
View Full Code Here


      try
      {
         final Context context = contextInstance.get();
         if (context == null)
         {
            throw new ContextNotAvailableException("No Naming Context available.");
         }
         return (DataSource) context.lookup(dataSourceName);
      }
      catch (NamingException e)
      {
View Full Code Here

      try
      {
         final Context context = contextInstance.get();
         if (context == null)
         {
            throw new ContextNotAvailableException("No Naming Context available.");
         }
         return (UserTransaction) context.lookup(configuration.get().getUserTransactionJndi());
      }
      catch (NamingException e)
      {
View Full Code Here

      try
      {
         final Context context = contextInstance.get();
         if (context == null)
         {
            throw new ContextNotAvailableException("No Naming Context available.");
         }
         return (DataSource) context.lookup(dataSourceName);
      }
      catch (NamingException e)
      {
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.persistence.core.exception.ContextNotAvailableException

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.