congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
LocalBinding.jndiBinding
Code IndexAdd Tabnine to your IDE (free)

How to use
jndiBinding
method
in
org.jboss.ejb3.annotation.LocalBinding

Best Java code snippets using org.jboss.ejb3.annotation.LocalBinding.jndiBinding (Showing top 6 results out of 315)

origin: org.jboss.jbossas/jboss-as-resteasy

private static String getLocalJndiName(JBossEnterpriseBeanMetaData ejb, Class<?> ejbClass)
{
 // See if local binding is explicitly-defined
 LocalBinding localBinding = ejbClass.getAnnotation(LocalBinding.class);
 // If none specified
 if (localBinding == null || (localBinding.jndiBinding() != null && localBinding.jndiBinding().trim().length() == 0))
 {
   String name = ejb.getLocalJndiName();
   return name;
 }
 // Local Binding was explicitly-specified, use it
 else
 {
   return localBinding.jndiBinding();
 }
}
origin: org.jboss.ws/jbossws-jboss510-metadata

protected LocalBindingMetaData createLocalBindingMetaData(Class<?> type, LocalBinding annotation)
{
 if(annotation.jndiBinding().length() == 0)
   return null;
 LocalBindingMetaData metaData = new LocalBindingMetaData();
 // set JndiName
 metaData.setJndiName(annotation.jndiBinding());
 return metaData;
}
origin: org.jboss.ejb3/jboss-ejb3-core

private static String getLocalJndiName(EJBContainer container, boolean conflictCheck)
{
 // See if local binding is explicitly-defined
 LocalBinding localBinding = container.getAnnotation(LocalBinding.class);
 // If none specified
 if (localBinding == null || (localBinding.jndiBinding() != null && localBinding.jndiBinding().trim().length() == 0))
 {
   JBossSessionBeanMetaData smd = (JBossSessionBeanMetaData)container.getXml();
   String name = smd.getLocalJndiName();
   // If we should check for naming conflict
   if (conflictCheck){
    // Check
    ProxyFactoryHelper.checkForJndiNamingConflict(container);
   }
   // Return
   return name;
 }
 // Local Binding was explicitly-specified, use it
 else
 {
   return localBinding.jndiBinding();
 }
}
origin: org.jboss.ejb3/jboss-ejb3-core

protected boolean hasJNDIBinding(String jndiName)
{
 assert jndiName != null : "jndiName is null";
 
 if(localBinding != null)
 {
   if(localBinding.jndiBinding().equals(jndiName))
    return true;
 }
 
 if(remoteBindings != null)
 {
   for(RemoteBinding binding : remoteBindings.value())
   {
    if(binding.jndiBinding().equals(jndiName))
      return true;
   }
 }
 
 return false;
}
origin: org.jboss.ejb3/jboss-ejb3-core

protected SessionProxyFactory getProxyFactory(LocalBinding binding)
{
 assert binding!=null : LocalBinding.class.getSimpleName() + " must be specified";
 
 // Find the jndiName
 String jndiName = this.getMetaData().getLocalJndiName();
 if(binding!=null)
 {
   jndiName = binding.jndiBinding();
 }
 
 // Get the Registry name
 String proxyFactoryRegistryBindName = this.getJndiRegistrar().getProxyFactoryRegistryKey(jndiName, this.getMetaData(), true);
 
 // Return
 return this.getProxyFactory(proxyFactoryRegistryBindName);
}
origin: org.jboss.ejb3/jboss-ejb3-core

return binding.jndiBinding();
org.jboss.ejb3.annotationLocalBindingjndiBinding

Popular methods of LocalBinding

  • <init>

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • 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