Codota Logo
JTAJobRunShell.getLog
Code IndexAdd Codota to your IDE (free)

How to use
getLog
method
in
org.quartz.ee.jta.JTAJobRunShell

Best Java code snippets using org.quartz.ee.jta.JTAJobRunShell.getLog (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: quartz-scheduler/quartz

try {
  if (ut.getStatus() == Status.STATUS_MARKED_ROLLBACK) {
    getLog().debug("UserTransaction marked for rollback only.");
    successfulExecution = false;
    getLog().debug("Committing UserTransaction.");
    ut.commit();
  } catch (Exception nse) {
    getLog().debug("Rolling-back UserTransaction.");
    ut.rollback();
  } catch (Exception nse) {
origin: quartz-scheduler/quartz

try {
  if (ut.getStatus() == Status.STATUS_MARKED_ROLLBACK) {
    getLog().debug("UserTransaction marked for rollback only.");
    successfulExecution = false;
    getLog().debug("Committing UserTransaction.");
    ut.commit();
  } catch (Exception nse) {
    getLog().debug("Rolling-back UserTransaction.");
    ut.rollback();
  } catch (Exception nse) {
origin: quartz-scheduler/quartz

@Override
protected void begin() throws SchedulerException {
  // Don't get a new UserTransaction w/o making sure we cleaned up the old 
  // one.  This is necessary because there are paths through JobRunShell.run()
  // where begin() can be called multiple times w/o complete being called in
  // between.
  cleanupUserTransaction();
  
  boolean beganSuccessfully = false;
  try {
    getLog().debug("Looking up UserTransaction.");
    ut = UserTransactionHelper.lookupUserTransaction();
    if (transactionTimeout != null) {
      ut.setTransactionTimeout(transactionTimeout);
    }
    getLog().debug("Beginning UserTransaction.");
    ut.begin();
    
    beganSuccessfully = true;
  } catch (SchedulerException se) {
    throw se;
  } catch (Exception nse) {
    throw new SchedulerException(
        "JTAJobRunShell could not start UserTransaction.", nse);
  } finally {
    if (beganSuccessfully == false) {
      cleanupUserTransaction();
    }
  }
}
origin: quartz-scheduler/quartz

@Override
protected void begin() throws SchedulerException {
  // Don't get a new UserTransaction w/o making sure we cleaned up the old 
  // one.  This is necessary because there are paths through JobRunShell.run()
  // where begin() can be called multiple times w/o complete being called in
  // between.
  cleanupUserTransaction();
  
  boolean beganSuccessfully = false;
  try {
    getLog().debug("Looking up UserTransaction.");
    ut = UserTransactionHelper.lookupUserTransaction();
    if (transactionTimeout != null) {
      ut.setTransactionTimeout(transactionTimeout);
    }
    getLog().debug("Beginning UserTransaction.");
    ut.begin();
    
    beganSuccessfully = true;
  } catch (SchedulerException se) {
    throw se;
  } catch (Exception nse) {
    throw new SchedulerException(
        "JTAJobRunShell could not start UserTransaction.", nse);
  } finally {
    if (beganSuccessfully == false) {
      cleanupUserTransaction();
    }
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

protected void begin() throws SchedulerException {
  // Don't get a new UserTransaction w/o making sure we cleaned up the old 
  // one.  This is necessary because there are paths through JobRunShell.run()
  // where begin() can be called multiple times w/o complete being called in
  // between.
  cleanupUserTransaction();
  
  boolean beganSuccessfully = false;
  try {
    getLog().debug("Looking up UserTransaction.");
    ut = UserTransactionHelper.lookupUserTransaction();
    getLog().debug("Beginning UserTransaction.");
    ut.begin();
    
    beganSuccessfully = true;
  } catch (SchedulerException se) {
    throw se;
  } catch (Exception nse) {
    throw new SchedulerException(
        "JTAJobRunShell could not start UserTransaction.", nse);
  } finally {
    if (beganSuccessfully == false) {
      cleanupUserTransaction();
    }
  }
}
origin: quartz/quartz-all

protected void begin() throws SchedulerException {
  // Don't get a new UserTransaction w/o making sure we cleaned up the old 
  // one.  This is necessary because there are paths through JobRunShell.run()
  // where begin() can be called multiple times w/o complete being called in
  // between.
  cleanupUserTransaction();
  
  boolean beganSuccessfully = false;
  try {
    getLog().debug("Looking up UserTransaction.");
    ut = UserTransactionHelper.lookupUserTransaction();
    getLog().debug("Beginning UserTransaction.");
    ut.begin();
    
    beganSuccessfully = true;
  } catch (SchedulerException se) {
    throw se;
  } catch (Exception nse) {
    throw new SchedulerException(
        "JTAJobRunShell could not start UserTransaction.", nse);
  } finally {
    if (beganSuccessfully == false) {
      cleanupUserTransaction();
    }
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

try {
  if (ut.getStatus() == Status.STATUS_MARKED_ROLLBACK) {
    getLog().debug("UserTransaction marked for rollback only.");
    successfulExecution = false;
    getLog().debug("Committing UserTransaction.");
    ut.commit();
  } catch (Exception nse) {
    getLog().debug("Rolling-back UserTransaction.");
    ut.rollback();
  } catch (Exception nse) {
origin: quartz/quartz-all

try {
  if (ut.getStatus() == Status.STATUS_MARKED_ROLLBACK) {
    getLog().debug("UserTransaction marked for rollback only.");
    successfulExecution = false;
    getLog().debug("Committing UserTransaction.");
    ut.commit();
  } catch (Exception nse) {
    getLog().debug("Rolling-back UserTransaction.");
    ut.rollback();
  } catch (Exception nse) {
org.quartz.ee.jtaJTAJobRunShellgetLog

Popular methods of JTAJobRunShell

  • <init>
    Create a JTAJobRunShell instance with the given settings.
  • cleanupUserTransaction

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now