Package org.apache.ode.bpel.iapi

Examples of org.apache.ode.bpel.iapi.ContextException


            _quartz.getSchedulerInstanceId();
            __instanceMap.put(_id, this);
        } catch (Exception ex) {
            String emsg = "Error intitializing scheduler.";
            __log.error(emsg,ex);
            throw new ContextException(emsg, ex);
        }
    }
View Full Code Here


        try {
            conn = _managedDS.getConnection();
            String dbname = conn.getMetaData().getDatabaseProductName().toLowerCase();
            _isSqlServer = dbname.contains("sqlserver") || dbname.contains(" sql server") || dbname.contains("microsoft sql");
        } catch (Exception ex) {
            throw new ContextException("Error connecting to the database.", ex);
        } finally {
            try {
                conn.close();
            } catch (Exception ex) {
                ;
View Full Code Here

            throw new IllegalStateException("init() not called!");

        try {
            _quartz.start();
        } catch (SchedulerException e) {
            throw new ContextException("Error starting Quartz.", e);
        }
    }
View Full Code Here

    public void stop() {
        try {
            _quartz.standby();
        } catch (SchedulerException e) {
            throw new ContextException("Error stopping Quartz.", e);
        }

    }
View Full Code Here

        try {
            _quartz.scheduleJob(jobDetail, trigger);
        } catch (SchedulerException e) {
            String errmsg = "Quartz failure in schedulePersistentJob";
            __log.error(errmsg, e);
            throw new ContextException(errmsg, e);
        }
        return jobDetail.getName();
    }
View Full Code Here

                    } else {
                        JobInfo ji = new JobInfo("volatileJob", detail, 0);
                        doExecute(ji);
                    }
                } catch (Exception e) {
                    throw new ContextException("Failure when starting a new volatile job.", e);
                }
            }
            public void beforeCompletion() { }
        });
        return null;
View Full Code Here

        try {
            _quartz.deleteJob(jobId, jobId + ".trigger");
        } catch (SchedulerException e) {
            String errmsg = "Quartz failure in cancelJob";
            __log.error(errmsg, e);
            throw new ContextException(errmsg, e);
        }
    }
View Full Code Here

                __log.debug("Starting transaction.");
            begin();
        } catch (Exception ex) {
            String errmsg = "Failed to start transaction.";
            __log.error(errmsg, ex);
            throw new ContextException(errmsg, ex);
        }

        boolean success = false;
        try {
            T retval = transaction.call();
            success = true;
            return retval;
        } finally {
            if (success)
                try {
                    if (__log.isDebugEnabled())
                        __log.debug("Commiting transaction.");
                    commit();
                } catch (Exception ex) {
                    String errmsg = "Failed to commit transaction.";
                    __log.error(errmsg, ex);
                    throw new ContextException(errmsg, ex);
                }
            else
                try {
                    rollback();
                } catch (Exception ex) {
                    String errmsg = "Failed to rollback transaction.";
                    __log.error(errmsg, ex);
                    throw new ContextException(errmsg, ex);
                }
        }
    }
View Full Code Here

        try {
            return _txm.getStatus() != Status.STATUS_NO_TRANSACTION;
        } catch (SystemException e) {
            String errmsg = "Failed to get transaction status.";
            __log.error(errmsg, e);
            throw new ContextException(errmsg, e);
        }
    }
View Full Code Here

                    synch.afterCompletion(status == Status.STATUS_COMMITTED);
                }

            });
        } catch (Exception e) {
            throw new ContextException("Unable to register synchronizer.", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.ode.bpel.iapi.ContextException

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.