Tabnine Logo
ServiceLocatorBuilder$AbstractJndiServiceLocator.getAbsoluteJndiName
Code IndexAdd Tabnine to your IDE (free)

How to use
getAbsoluteJndiName
method
in
ch.inftec.ju.ee.client.ServiceLocatorBuilder$AbstractJndiServiceLocator

Best Java code snippets using ch.inftec.ju.ee.client.ServiceLocatorBuilder$AbstractJndiServiceLocator.getAbsoluteJndiName (Showing top 2 results out of 315)

origin: ch.inftec.ju/ju-util-ee

  @Override
  public <T> T lookup(String jndiName) {
    String absoluteJndiName = this.getAbsoluteJndiName(jndiName);
    logger.debug(String.format("JNDI lookup (relative: %s, absolute: %s)", jndiName, absoluteJndiName));
    
    try {
      @SuppressWarnings("unchecked")
      T obj = (T) this.ctx.lookup(absoluteJndiName);
      
      return obj;
    } catch (Exception ex) {
      throw new JuRuntimeException(ex);
    }
  }
}
origin: ch.inftec.ju/ju-ee

  @Override
  public <T> T lookup(String jndiName) {
    String absoluteJndiName = this.getAbsoluteJndiName(jndiName);
    logger.debug(String.format("JNDI lookup (relative: %s, absolute: %s)", jndiName, absoluteJndiName));
    
    try {
      @SuppressWarnings("unchecked")
      T obj = (T) this.ctx.lookup(absoluteJndiName);
      
      return obj;
    } catch (Exception ex) {
      throw new JuRuntimeException(ex);
    }
  }
}
ch.inftec.ju.ee.clientServiceLocatorBuilder$AbstractJndiServiceLocatorgetAbsoluteJndiName

Javadoc

Gets the absolute JNDI name (i.e. the JNDI name that will actually be used for the lookup) based on the submitted relative JNDI name.

The default implementation just returns the same JNDI

Popular methods of ServiceLocatorBuilder$AbstractJndiServiceLocator

    Popular in Java

    • Creating JSON documents from java classes using gson
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • getExternalFilesDir (Context)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • Kernel (java.awt.image)
    • SQLException (java.sql)
      An exception that indicates a failed JDBC operation. It provides the following information about pro
    • Arrays (java.util)
      This class contains various methods for manipulating arrays (such as sorting and searching). This cl
    • Locale (java.util)
      Locale represents a language/country/variant combination. Locales are used to alter the presentatio
    • JCheckBox (javax.swing)
    • JTable (javax.swing)
    • Top 12 Jupyter Notebook extensions
    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