Package javax.resource

Examples of javax.resource.ResourceException.initCause()


  try {
      return txn.getTransaction();
  } catch (DatabaseException DE) {
      ResourceException ret = new ResourceException(DE.toString());
      ret.initCause(DE);
      throw ret;
  }
    }

    public void close()
View Full Code Here


                return;
            }
        } catch( SystemException se ) {
            ResourceException re = new ResourceException( se.getMessage() );
            re.initCause( se );
            throw re;
        }

        List invList = Switch.getSwitch().getInvocationManager().getAllInvocations();
View Full Code Here

            return session;
        } catch (RepositoryException e) {
            log("Failed to create session", e);
            ResourceException exception = new ResourceException(
                    "Failed to create session: " + e.getMessage());
            exception.initCause(e);
            throw exception;
        }
    }

    /**
 
View Full Code Here

            return mcf.getRepository().getDescriptor(key);
        } catch (RepositoryException e) {
            log("Failed to access the repository", e);
            ResourceException exception = new ResourceException(
                    "Failed to access the repository: " + e.getMessage());
            exception.initCause(e);
            throw exception;
        }
    }

    /**
 
View Full Code Here

        try {
            return txn.getTransaction();
        } catch (DatabaseException DE) {
            ResourceException ret = new ResourceException(DE.toString());
            ret.initCause(DE);
            throw ret;
        }
    }

    public void close() {
View Full Code Here

        checkEnv("commit");
        try {
            env.getThreadTransaction().commit();
        } catch (DatabaseException DE) {
            ResourceException ret = new ResourceException(DE.toString());
            ret.initCause(DE);
            throw ret;
        } finally {
            env.setThreadTransaction(null);
        }
View Full Code Here

        checkEnv("rollback");
        try {
            env.getThreadTransaction().abort();
        } catch (DatabaseException DE) {
            ResourceException ret = new ResourceException(DE.toString());
            ret.initCause(DE);
            throw ret;
        } finally {
            env.setThreadTransaction(null);
        }
View Full Code Here

            return session;
        } catch (RepositoryException e) {
            log("Failed to create session", e);
            ResourceException exception = new ResourceException(
                    "Failed to create session: " + e.getMessage());
            exception.initCause(e);
            throw exception;
        }
    }

    /**
 
View Full Code Here

            return mcf.getRepository().getDescriptor(key);
        } catch (RepositoryException e) {
            log("Failed to access the repository", e);
            ResourceException exception = new ResourceException(
                    "Failed to access the repository: " + e.getMessage());
            exception.initCause(e);
            throw exception;
        }
    }

    /**
 
View Full Code Here

  try {
      return txn.getTransaction();
  } catch (DatabaseException DE) {
      ResourceException ret = new ResourceException(DE.toString());
      ret.initCause(DE);
      throw ret;
  }
    }

    public void close()
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.