Codota Logo
UserTransactionHelper$UserTransactionWithContext.closeContext
Code IndexAdd Codota to your IDE (free)

How to use
closeContext
method
in
org.quartz.ee.jta.UserTransactionHelper$UserTransactionWithContext

Best Java code snippets using org.quartz.ee.jta.UserTransactionHelper$UserTransactionWithContext.closeContext (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: quartz-scheduler/quartz

/**
 * When we are being garbage collected, make sure we were properly
 * returned to the UserTransactionHelper.
 */
@Override
protected void finalize() throws Throwable {
  try {
    if (context != null) {
      getLog().warn("UserTransaction was never returned to the UserTransactionHelper.");
      closeContext();
    }
  } finally {
    super.finalize();
  }
}
origin: quartz-scheduler/quartz

/**
 * When we are being garbage collected, make sure we were properly
 * returned to the UserTransactionHelper.
 */
@Override
protected void finalize() throws Throwable {
  try {
    if (context != null) {
      getLog().warn("UserTransaction was never returned to the UserTransactionHelper.");
      closeContext();
    }
  } finally {
    super.finalize();
  }
}
origin: quartz-scheduler/quartz

public UserTransactionWithContext() throws SchedulerException {
  try {
    context = new InitialContext();
  } catch (Throwable t) {
    throw new SchedulerException(
      "UserTransactionHelper failed to create InitialContext to lookup/create UserTransaction.", t);
  }
  
  try {
    userTransaction = (UserTransaction)context.lookup(userTxURL);
  } catch (Throwable t) {
    closeContext();
    throw new SchedulerException(
      "UserTransactionHelper could not lookup/create UserTransaction.",
      t);
  }
  
  if (userTransaction == null) {
    closeContext();
    throw new SchedulerException(
      "UserTransactionHelper could not lookup/create UserTransaction from the InitialContext.");
  }
}
origin: quartz-scheduler/quartz

/**
 * Return a UserTransaction that was retrieved via getUserTransaction().
 * This will make sure that the InitalContext used to lookup/create the 
 * UserTransaction is properly cleaned up.
 */
public static void returnUserTransaction(UserTransaction userTransaction) {
  if ((userTransaction != null) && 
    (userTransaction instanceof UserTransactionWithContext)) {
    UserTransactionWithContext userTransactionWithContext = 
      (UserTransactionWithContext)userTransaction;
    
    userTransactionWithContext.closeContext();
  }
}
origin: quartz-scheduler/quartz

public UserTransactionWithContext() throws SchedulerException {
  try {
    context = new InitialContext();
  } catch (Throwable t) {
    throw new SchedulerException(
      "UserTransactionHelper failed to create InitialContext to lookup/create UserTransaction.", t);
  }
  
  try {
    userTransaction = (UserTransaction)context.lookup(userTxURL);
  } catch (Throwable t) {
    closeContext();
    throw new SchedulerException(
      "UserTransactionHelper could not lookup/create UserTransaction.",
      t);
  }
  
  if (userTransaction == null) {
    closeContext();
    throw new SchedulerException(
      "UserTransactionHelper could not lookup/create UserTransaction from the InitialContext.");
  }
}
origin: quartz-scheduler/quartz

/**
 * Return a UserTransaction that was retrieved via getUserTransaction().
 * This will make sure that the InitalContext used to lookup/create the 
 * UserTransaction is properly cleaned up.
 */
public static void returnUserTransaction(UserTransaction userTransaction) {
  if ((userTransaction != null) && 
    (userTransaction instanceof UserTransactionWithContext)) {
    UserTransactionWithContext userTransactionWithContext = 
      (UserTransactionWithContext)userTransaction;
    
    userTransactionWithContext.closeContext();
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * Return a UserTransaction that was retrieved via getUserTransaction().
 * This will make sure that the InitalContext used to lookup/create the 
 * UserTransaction is properly cleaned up.
 */
public static void returnUserTransaction(UserTransaction userTransaction) {
  if ((userTransaction != null) && 
    (userTransaction instanceof UserTransactionWithContext)) {
    UserTransactionWithContext userTransactionWithContext = 
      (UserTransactionWithContext)userTransaction;
    
    userTransactionWithContext.closeContext();
  }
}
origin: quartz/quartz-all

/**
 * Return a UserTransaction that was retrieved via getUserTransaction().
 * This will make sure that the InitalContext used to lookup/create the 
 * UserTransaction is properly cleaned up.
 */
public static void returnUserTransaction(UserTransaction userTransaction) {
  if ((userTransaction != null) && 
    (userTransaction instanceof UserTransactionWithContext)) {
    UserTransactionWithContext userTransactionWithContext = 
      (UserTransactionWithContext)userTransaction;
    
    userTransactionWithContext.closeContext();
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * When we are being garbage collected, make sure we were properly
 * returned to the UserTransactionHelper.
 */
protected void finalize() throws Throwable {
  try {
    if (context != null) {
      getLog().warn("UserTransaction was never returned to the UserTransactionHelper.");
      closeContext();
    }
  } finally {
    super.finalize();
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

public UserTransactionWithContext() throws SchedulerException {
  try {
    context = new InitialContext();
  } catch (Throwable t) {
    throw new SchedulerException(
      "UserTransactionHelper failed to create InitialContext to lookup/create UserTransaction.", t);
  }
  
  try {
    userTransaction = (UserTransaction)context.lookup(userTxURL);
  } catch (Throwable t) {
    closeContext();
    throw new SchedulerException(
      "UserTransactionHelper could not lookup/create UserTransaction.",
      t);
  }
  
  if (userTransaction == null) {
    closeContext();
    throw new SchedulerException(
      "UserTransactionHelper could not lookup/create UserTransaction from the InitialContext.");
  }
}
origin: quartz/quartz-all

public UserTransactionWithContext() throws SchedulerException {
  try {
    context = new InitialContext();
  } catch (Throwable t) {
    throw new SchedulerException(
      "UserTransactionHelper failed to create InitialContext to lookup/create UserTransaction.", t);
  }
  
  try {
    userTransaction = (UserTransaction)context.lookup(userTxURL);
  } catch (Throwable t) {
    closeContext();
    throw new SchedulerException(
      "UserTransactionHelper could not lookup/create UserTransaction.",
      t);
  }
  
  if (userTransaction == null) {
    closeContext();
    throw new SchedulerException(
      "UserTransactionHelper could not lookup/create UserTransaction from the InitialContext.");
  }
}
origin: quartz/quartz-all

/**
 * When we are being garbage collected, make sure we were properly
 * returned to the UserTransactionHelper.
 */
protected void finalize() throws Throwable {
  try {
    if (context != null) {
      getLog().warn("UserTransaction was never returned to the UserTransactionHelper.");
      closeContext();
    }
  } finally {
    super.finalize();
  }
}
org.quartz.ee.jtaUserTransactionHelper$UserTransactionWithContextcloseContext

Javadoc

Close the InitialContext that was used to lookup/create the underlying UserTransaction.

Popular methods of UserTransactionHelper$UserTransactionWithContext

  • <init>
  • getLog

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Option (scala)
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