Tabnine Logo
GlobalResourcesLifecycleListener
Code IndexAdd Tabnine to your IDE (free)

How to use
GlobalResourcesLifecycleListener
in
org.apache.catalina.mbeans

Best Java code snippets using org.apache.catalina.mbeans.GlobalResourcesLifecycleListener (Showing top 20 results out of 315)

origin: tomcat/catalina

/**
 * Primary entry point for startup and shutdown events.
 *
 * @param event The event that has occurred
 */
public void lifecycleEvent(LifecycleEvent event) {
  if (Lifecycle.START_EVENT.equals(event.getType())) {
    component = event.getLifecycle();
    createMBeans();
  } else if (Lifecycle.STOP_EVENT.equals(event.getType())) {
    destroyMBeans();
    component = null;
  }
}
origin: tomcat/catalina

/**
 * Create the MBeans for the interesting global JNDI resources.
 */
protected void createMBeans() {
  // Look up our global naming context
  Context context = null;
  try {
    context = (Context) (new InitialContext()).lookup("java:/");
  } catch (NamingException e) {
    log.error("No global naming context defined for server");
    return;
  }
  // Recurse through the defined global JNDI resources context
  try {
    createMBeans("", context);
  } catch (NamingException e) {
    log.error("Exception processing Global JNDI Resources", e);
  }
}
origin: ch.rasc/embeddedtc

.addLifecycleListener(new GlobalResourcesLifecycleListener());
origin: codefollower/Tomcat-Research

/**
 * Create the MBeans for the interesting global JNDI resources.
 */
protected void createMBeans() {
  // Look up our global naming context
  Context context = null;
  try {
    context = (Context) (new InitialContext()).lookup("java:/");
  } catch (NamingException e) {
    log.error("No global naming context defined for server");
    return;
  }
  // Recurse through the defined global JNDI resources context
  try {
    createMBeans("", context);
  } catch (NamingException e) {
    log.error("Exception processing Global JNDI Resources", e);
  }
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Primary entry point for startup and shutdown events.
 *
 * @param event The event that has occurred
 */
public void lifecycleEvent(LifecycleEvent event) {
  if (Lifecycle.START_EVENT.equals(event.getType())) {
    component = event.getLifecycle();
    createMBeans();
  } else if (Lifecycle.STOP_EVENT.equals(event.getType())) {
    destroyMBeans();
    component = null;
  }
}
origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Create the MBeans for the interesting global JNDI resources.
 */
protected void createMBeans() {
  // Look up our global naming context
  Context context = null;
  try {
    context = (Context) (new InitialContext()).lookup("java:/");
  } catch (NamingException e) {
    log.error("No global naming context defined for server");
    return;
  }
  // Recurse through the defined global JNDI resources context
  try {
    createMBeans("", context);
  } catch (NamingException e) {
    log.error("Exception processing Global JNDI Resources", e);
  }
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Primary entry point for startup and shutdown events.
 *
 * @param event The event that has occurred
 */
public void lifecycleEvent(LifecycleEvent event) {
  if (Lifecycle.START_EVENT.equals(event.getType())) {
    component = event.getLifecycle();
    createMBeans();
  } else if (Lifecycle.STOP_EVENT.equals(event.getType())) {
    destroyMBeans();
    component = null;
  }
}
origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Create the MBeans for the interesting global JNDI resources.
 */
protected void createMBeans() {
  // Look up our global naming context
  Context context = null;
  try {
    context = (Context) (new InitialContext()).lookup("java:/");
  } catch (NamingException e) {
    log.error("No global naming context defined for server");
    return;
  }
  // Recurse through the defined global JNDI resources context
  try {
    createMBeans("", context);
  } catch (NamingException e) {
    log.error("Exception processing Global JNDI Resources", e);
  }
}
origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Primary entry point for startup and shutdown events.
 *
 * @param event The event that has occurred
 */
public void lifecycleEvent(LifecycleEvent event) {
  if (Lifecycle.START_EVENT.equals(event.getType())) {
    component = event.getLifecycle();
    createMBeans();
  } else if (Lifecycle.STOP_EVENT.equals(event.getType())) {
    destroyMBeans();
    component = null;
  }
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Create the MBeans for the interesting global JNDI resources.
 */
protected void createMBeans() {
  // Look up our global naming context
  Context context = null;
  try {
    context = (Context) (new InitialContext()).lookup("java:/");
  } catch (NamingException e) {
    log.error("No global naming context defined for server");
    return;
  }
  // Recurse through the defined global JNDI resources context
  try {
    createMBeans("", context);
  } catch (NamingException e) {
    log.error("Exception processing Global JNDI Resources", e);
  }
}
origin: org.apache.tomcat/tomcat-catalina

/**
 * Primary entry point for startup and shutdown events.
 *
 * @param event The event that has occurred
 */
@Override
public void lifecycleEvent(LifecycleEvent event) {
  if (Lifecycle.START_EVENT.equals(event.getType())) {
    component = event.getLifecycle();
    createMBeans();
  } else if (Lifecycle.STOP_EVENT.equals(event.getType())) {
    destroyMBeans();
    component = null;
  }
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Create the MBeans for the interesting global JNDI resources.
 */
protected void createMBeans() {
  // Look up our global naming context
  Context context = null;
  try {
    context = (Context) (new InitialContext()).lookup("java:/");
  } catch (NamingException e) {
    log.error("No global naming context defined for server");
    return;
  }
  // Recurse through the defined global JNDI resources context
  try {
    createMBeans("", context);
  } catch (NamingException e) {
    log.error("Exception processing Global JNDI Resources", e);
  }
}
origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Primary entry point for startup and shutdown events.
 *
 * @param event The event that has occurred
 */
@Override
public void lifecycleEvent(LifecycleEvent event) {
  if (Lifecycle.START_EVENT.equals(event.getType())) {
    component = event.getLifecycle();
    createMBeans();
  } else if (Lifecycle.STOP_EVENT.equals(event.getType())) {
    destroyMBeans();
    component = null;
  }
}
origin: org.apache.tomcat/tomcat-catalina

/**
 * Create the MBeans for the interesting global JNDI resources.
 */
protected void createMBeans() {
  // Look up our global naming context
  Context context = null;
  try {
    context = (Context) (new InitialContext()).lookup("java:/");
  } catch (NamingException e) {
    log.error("No global naming context defined for server");
    return;
  }
  // Recurse through the defined global JNDI resources context
  try {
    createMBeans("", context);
  } catch (NamingException e) {
    log.error("Exception processing Global JNDI Resources", e);
  }
}
origin: codefollower/Tomcat-Research

/**
 * Primary entry point for startup and shutdown events.
 *
 * @param event The event that has occurred
 */
@Override
public void lifecycleEvent(LifecycleEvent event) {
  if (Lifecycle.START_EVENT.equals(event.getType())) {
    component = event.getLifecycle();
    createMBeans();
  } else if (Lifecycle.STOP_EVENT.equals(event.getType())) {
    destroyMBeans();
    component = null;
  }
}
origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Create the MBeans for the interesting global JNDI resources.
 */
protected void createMBeans() {
  // Look up our global naming context
  Context context = null;
  try {
    context = (Context) (new InitialContext()).lookup("java:/");
  } catch (NamingException e) {
    log.error("No global naming context defined for server");
    return;
  }
  // Recurse through the defined global JNDI resources context
  try {
    createMBeans("", context);
  } catch (NamingException e) {
    log.error("Exception processing Global JNDI Resources", e);
  }
}
origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Primary entry point for startup and shutdown events.
 *
 * @param event The event that has occurred
 */
@Override
public void lifecycleEvent(LifecycleEvent event) {
  if (Lifecycle.START_EVENT.equals(event.getType())) {
    component = event.getLifecycle();
    createMBeans();
  } else if (Lifecycle.STOP_EVENT.equals(event.getType())) {
    destroyMBeans();
    component = null;
  }
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Create the MBeans for the interesting global JNDI resources.
 */
protected void createMBeans() {
  // Look up our global naming context
  Context context = null;
  try {
    context = (Context) (new InitialContext()).lookup("java:/");
  } catch (NamingException e) {
    log.error("No global naming context defined for server");
    return;
  }
  // Recurse through the defined global JNDI resources context
  try {
    createMBeans("", context);
  } catch (NamingException e) {
    log.error("Exception processing Global JNDI Resources", e);
  }
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Primary entry point for startup and shutdown events.
 *
 * @param event The event that has occurred
 */
@Override
public void lifecycleEvent(LifecycleEvent event) {
  if (Lifecycle.START_EVENT.equals(event.getType())) {
    component = event.getLifecycle();
    createMBeans();
  } else if (Lifecycle.STOP_EVENT.equals(event.getType())) {
    destroyMBeans();
    component = null;
  }
}
origin: tomcat/catalina

  createMBeans(name + "/", (Context) value);
} else if (value instanceof UserDatabase) {
  try {
    createMBeans(name, (UserDatabase) value);
  } catch (Exception e) {
    log.error("Exception creating UserDatabase MBeans for " + name,
org.apache.catalina.mbeansGlobalResourcesLifecycleListener

Javadoc

Implementation of LifecycleListener that instantiates the set of MBeans associated with global JNDI resources that are subject to management.

Most used methods

  • createMBeans
    Create the MBeans for the specified UserDatabase and its contents.
  • destroyMBeans
    Destroy the MBeans for the interesting global JNDI resources.
  • <init>

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now