Codota Logo
QuartzService.rebind
Code IndexAdd Codota to your IDE (free)

How to use
rebind
method
in
org.quartz.ee.jmx.jboss.QuartzService

Best Java code snippets using org.quartz.ee.jmx.jboss.QuartzService.rebind (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: quartz-scheduler/quartz

@Override
public void startService() throws Exception {
  log.info("Start QuartzService(" + jndiName + ")...");
  try {
    rebind();
  } catch (NamingException ne) {
    log.error("Failed to rebind Scheduler", ne);
    throw new SchedulerConfigException("Failed to rebind Scheduler - ",
        ne);
  }
  try {
    Scheduler scheduler = schedulerFactory.getScheduler();
    if (startScheduler) {
      scheduler.start();
    } else {
      log.info("Skipping starting the scheduler (will not run jobs).");
    }
  } catch (Exception e) {
    log.error("Failed to start Scheduler", e);
    throw new SchedulerConfigException("Failed to start Scheduler - ",
        e);
  }
  log.info("QuartzService(" + jndiName + ") started.");
}
origin: quartz-scheduler/quartz

@Override
public void startService() throws Exception {
  log.info("Start QuartzService(" + jndiName + ")...");
  try {
    rebind();
  } catch (NamingException ne) {
    log.error("Failed to rebind Scheduler", ne);
    throw new SchedulerConfigException("Failed to rebind Scheduler - ",
        ne);
  }
  try {
    Scheduler scheduler = schedulerFactory.getScheduler();
    if (startScheduler) {
      scheduler.start();
    } else {
      log.info("Skipping starting the scheduler (will not run jobs).");
    }
  } catch (Exception e) {
    log.error("Failed to start Scheduler", e);
    throw new SchedulerConfigException("Failed to start Scheduler - ",
        e);
  }
  log.info("QuartzService(" + jndiName + ") started.");
}
origin: quartz-scheduler/quartz

public void setJndiName(String jndiName) throws Exception {
  String oldName = this.jndiName;
  this.jndiName = jndiName;
  if (super.getState() == STARTED) {
    unbind(oldName);
    try {
      rebind();
    } catch (NamingException ne) {
      log.error("Failed to rebind Scheduler", ne);
      throw new SchedulerConfigException(
          "Failed to rebind Scheduler - ", ne);
    }
  }
}
origin: quartz-scheduler/quartz

public void setJndiName(String jndiName) throws Exception {
  String oldName = this.jndiName;
  this.jndiName = jndiName;
  if (super.getState() == STARTED) {
    unbind(oldName);
    try {
      rebind();
    } catch (NamingException ne) {
      log.error("Failed to rebind Scheduler", ne);
      throw new SchedulerConfigException(
          "Failed to rebind Scheduler - ", ne);
    }
  }
}
origin: org.quartz-scheduler/quartz-jboss

@Override
public void startService() throws Exception {
  log.info("Start QuartzService(" + jndiName + ")...");
  try {
    rebind();
  } catch (NamingException ne) {
    log.error("Failed to rebind Scheduler", ne);
    throw new SchedulerConfigException("Failed to rebind Scheduler - ",
        ne);
  }
  try {
    Scheduler scheduler = schedulerFactory.getScheduler();
    if (startScheduler) {
      scheduler.start();
    } else {
      log.info("Skipping starting the scheduler (will not run jobs).");
    }
  } catch (Exception e) {
    log.error("Failed to start Scheduler", e);
    throw new SchedulerConfigException("Failed to start Scheduler - ",
        e);
  }
  log.info("QuartzService(" + jndiName + ") started.");
}
origin: org.quartz-scheduler/quartz-jboss

public void setJndiName(String jndiName) throws Exception {
  String oldName = this.jndiName;
  this.jndiName = jndiName;
  if (super.getState() == STARTED) {
    unbind(oldName);
    try {
      rebind();
    } catch (NamingException ne) {
      log.error("Failed to rebind Scheduler", ne);
      throw new SchedulerConfigException(
          "Failed to rebind Scheduler - ", ne);
    }
  }
}
org.quartz.ee.jmx.jbossQuartzServicerebind

Popular methods of QuartzService

  • unbind

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JFrame (javax.swing)
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
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