Tabnine Logo
GlassfishNamingManager.restoreJavaCompEnvContext
Code IndexAdd Tabnine to your IDE (free)

How to use
restoreJavaCompEnvContext
method
in
org.glassfish.api.naming.GlassfishNamingManager

Best Java code snippets using org.glassfish.api.naming.GlassfishNamingManager.restoreJavaCompEnvContext (Showing top 5 results out of 315)

origin: org.glassfish.common/container-common

public Object resolveObject(Object obj)
  throws IOException {
  Object result = obj;
  if (obj instanceof SerializableJNDIContext) {
    SerializableJNDIContext sctx = (SerializableJNDIContext) obj;
    try {
      String name = sctx.getName();
      if ((name == null) || (name.length() == 0)) {
        result = new InitialContext();
      } else {
        result = gfNM.restoreJavaCompEnvContext(name);
      }
    } catch (NamingException namEx) {
      IOException ioe = new IOException();
      ioe.initCause(namEx);
      throw ioe;
    }
  }
  return result;
}
origin: org.glassfish.main.ejb/ejb-container

public Object createObject()
  throws IOException
{
  try {
    if ((name == null) || (name.length() == 0)) {
      return new InitialContext();
    } else {
      return Globals.getDefaultHabitat().<GlassfishNamingManager>getService(GlassfishNamingManager.class).restoreJavaCompEnvContext(name);
    }
  } catch (NamingException namEx) {
    IOException ioe = new IOException();
    ioe.initCause(namEx);
    throw ioe;
}
}
origin: org.glassfish.main.common/container-common

public Object createObject() throws IOException {
  try {
    if ((name == null) || (name.length() == 0)) {
      return new InitialContext();
    } else {
      return Globals.getDefaultHabitat()
          .<GlassfishNamingManager>getService(GlassfishNamingManager.class)
          .restoreJavaCompEnvContext(name);
    }
  } catch (NamingException namEx) {
    IOException ioe = new IOException();
    ioe.initCause(namEx);
    throw ioe;
  }
}
origin: org.glassfish.main.common/container-common

public Object resolveObject(Object obj)
  throws IOException {
  Object result = obj;
  if (obj instanceof SerializableJNDIContext) {
    SerializableJNDIContext sctx = (SerializableJNDIContext) obj;
    try {
      String name = sctx.getName();
      if ((name == null) || (name.length() == 0)) {
        result = new InitialContext();
      } else {
        result = gfNM.restoreJavaCompEnvContext(name);
      }
    } catch (NamingException namEx) {
      IOException ioe = new IOException();
      ioe.initCause(namEx);
      throw ioe;
    }
  }
  return result;
}
origin: org.glassfish.ejb/ejb-container

public Object createObject()
  throws IOException
{
  try {
    if ((name == null) || (name.length() == 0)) {
      return new InitialContext();
    } else {
      return Globals.getDefaultHabitat().getComponent(GlassfishNamingManager.class).restoreJavaCompEnvContext(name);
    }
  } catch (NamingException namEx) {
    IOException ioe = new IOException();
    ioe.initCause(namEx);
    throw ioe;
}
}
org.glassfish.api.namingGlassfishNamingManagerrestoreJavaCompEnvContext

Javadoc

Recreate a context for java:comp/env or one of its sub-contexts given the context name.

Popular methods of GlassfishNamingManager

  • getInitialContext
    Get the initial context.
  • publishObject
    Publish an object in the naming service.
  • unpublishObject
    Remove an object from the naming service.
  • bindToAppNamespace
    Binds the bindings to module namespace of an application Typically, to get access to application's n
  • lookup
    Lookup a naming entry for a particular componentId
  • bindToComponentNamespace
    This method enumerates the env properties, ejb and resource references etc for a J2EE component and
  • bindToModuleNamespace
    Binds the bindings to module namespace of an application Typically, to get access to application's m
  • lookupFromAppNamespace
    Lookup a naming entry in a particular application's namespace
  • lookupFromModuleNamespace
    Lookup a naming entry in a particular application's module's namespace
  • publishCosNamingObject
    Publish a CosNaming object. The object is published to both the server's CosNaming service and the g
  • unbindAppObject
    Remove an object from the application's namespace. Typically, to get access to application's namespa
  • unbindAppObjects
    Unbind app and module level bindings for the given app name.
  • unbindAppObject,
  • unbindAppObjects,
  • unbindComponentObjects,
  • unbindModuleObject,
  • unpublishCosNamingObject,
  • initializeRemoteNamingSupport

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • getSharedPreferences (Context)
  • onCreateOptionsMenu (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Best IntelliJ 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