Tabnine Logo
EjbReferenceContainer.getEjbReference
Code IndexAdd Tabnine to your IDE (free)

How to use
getEjbReference
method
in
com.sun.enterprise.deployment.types.EjbReferenceContainer

Best Java code snippets using com.sun.enterprise.deployment.types.EjbReferenceContainer.getEjbReference (Showing top 5 results out of 315)

origin: org.glassfish.main.deployment/dol

/**
 * receives notiification of the value for a particular tag
 *
 * @param element the xml element
 * @param value it's associated value
 */
@Override
public void setElementValue(XMLElement element, String value) {
  if (RuntimeTagNames.EJB_REFERENCE_NAME.equals(element.getQName())) {
    Object parentDesc = getParentNode().getDescriptor();
    Logger logger = DOLUtils.getDefaultLogger();
    if (parentDesc instanceof EjbReferenceContainer) {
      try {
        descriptor = ((EjbReferenceContainer)parentDesc).getEjbReference(value);
        if (logger.isLoggable(Level.FINER)) {
          logger.finer("Applying ref runtime to " + descriptor);
        }
      } catch (IllegalArgumentException iae) {
        logger.warning(iae.getMessage());
      }
    }
    if (descriptor == null) {
      logger.log(Level.SEVERE, "enterprise.deployment.backend.addDescriptorFailure",
          new Object[]{"ejb-ref" , value });
    }
  } else {
    super.setElementValue(element, value);
  }
}
origin: org.glassfish.main.deployment/dol

/**
 * receives notiification of the value for a particular tag
 * 
 * @param element the xml element
 * @param value it's associated value
 */
public void setElementValue(XMLElement element, String value) {
  if (RuntimeTagNames.EJB_REFERENCE_NAME.equals(element.getQName())) {
    Object parentDesc = getParentNode().getDescriptor();
    if (parentDesc instanceof EjbReferenceContainer) {
      try {
        descriptor = ((EjbReferenceContainer) parentDesc).getEjbReference(value);
        DOLUtils.getDefaultLogger().finer("Applying ref runtime to " + descriptor);
      } catch (IllegalArgumentException iae) {
        DOLUtils.getDefaultLogger().warning(iae.getMessage());
      }
    }
    if (descriptor==null) {
      DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.addDescriptorFailure",
          new Object[]{"ejb-ref" , value });
    }
  } else super.setElementValue(element, value);
}

origin: org.glassfish.deployment/dol

/**
 * receives notiification of the value for a particular tag
 * 
 * @param element the xml element
 * @param value it's associated value
 */
public void setElementValue(XMLElement element, String value) {
  if (RuntimeTagNames.EJB_REFERENCE_NAME.equals(element.getQName())) {
    Object parentDesc = getParentNode().getDescriptor();
    if (parentDesc instanceof EjbReferenceContainer) {
      try {
        descriptor = ((EjbReferenceContainer) parentDesc).getEjbReference(value);
        DOLUtils.getDefaultLogger().finer("Applying ref runtime to " + descriptor);
      } catch (IllegalArgumentException iae) {
        DOLUtils.getDefaultLogger().warning(iae.getMessage());
      }
    }
    if (descriptor==null) {
      DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.addDescriptorFailure",
          new Object[]{"ejb-ref" , value });
    }
  } else super.setElementValue(element, value);
}

origin: org.glassfish.main.deployment/dol

EjbReference ejbRef = null;
try {
  ejbRef = getEjbReferenceContainer().getEjbReference(name);
origin: org.glassfish.deployment/dol

EjbReference ejbRef = null;
try {
  ejbRef = getEjbReferenceContainer().getEjbReference(name);
com.sun.enterprise.deployment.typesEjbReferenceContainergetEjbReference

Javadoc

Looks up an ejb reference with the given name. Throws an IllegalArgumentException if it is not found.

Popular methods of EjbReferenceContainer

  • addEjbReferenceDescriptor
    Add a reference to an ejb.
  • getEjbReferenceDescriptors
    Return the set of references to ejbs that I have.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • CodeWhisperer alternatives
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