Class JndiBase

java.lang.Object
org.frankframework.jndi.JndiBase
All Implemented Interfaces:
IConfigurable, IConfigurationAware, INamedObject, IScopeProvider, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
JdbcFacade, JMSFacade, LdapSender, TomcatJndiProxy

public class JndiBase extends Object implements IConfigurable
Provides all JNDI functions and is meant to act as a base class.
Author:
Johan Verrips IOS
  • Field Details

    • log

      protected org.apache.logging.log4j.Logger log
  • Constructor Details

    • JndiBase

      public JndiBase()
  • Method Details

    • configure

      public void configure() throws ConfigurationException
      Specified by:
      configure in interface IConfigurable
      Throws:
      ConfigurationException
    • close

      public void close()
    • getJndiEnv

      public Properties getJndiEnv() throws NamingException
      Throws:
      NamingException
    • getContext

      public Context getContext() throws NamingException
      When InitialContextFactory and ProviderURL are set, these are used to get the Context. Otherwise, the InitialContext is retrieved without parameters.
      Notice: you can set the parameters on the commandline with
      java -Djava.naming.factory.initial=xxx -Djava.naming.provider.url=xxx
      Throws:
      NamingException
    • setAuthentication

      public void setAuthentication(String newAuthentication)
      maps to the field context.security_authentication
    • setCredentials

      public void setCredentials(String newCredentials)
      username to connect to context, maps to context.security_credentials
    • setInitialContextFactoryName

      public void setInitialContextFactoryName(String value)
      class to use as initial context factory
    • setProviderURL

      public void setProviderURL(String value)
      Sets the value of providerURL
    • setSecurityProtocol

      public void setSecurityProtocol(String securityProtocol)
      maps to the field context.security_protocol
    • setUrlPkgPrefixes

      public void setUrlPkgPrefixes(String newUrlPkgPrefixes)
      maps to the field context.url_pkg_prefixes
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setJmsRealm

      public void setJmsRealm(String jmsRealmName)
      loads JNDI (and other) properties from a JmsRealm
      See Also:
    • setPrincipal

      public void setPrincipal(String string)
      username to connect to context, maps to context.security_principal
    • setJndiAuthAlias

      public void setJndiAuthAlias(String string)
      authentication alias, may be used to override principal and credential-settings
    • setJndiContextPrefix

      public void setJndiContextPrefix(String string)
    • setJndiProperties

      public void setJndiProperties(String jndiProperties)
    • setName

      public void setName(String name)
      Name of the sender or the listener
      Specified by:
      setName in interface INamedObject
    • getConfigurationClassLoader

      public ClassLoader getConfigurationClassLoader()
      Description copied from interface: IScopeProvider
      This ClassLoader is set upon creation of the object, used to retrieve resources configured by the Ibis application.
      Specified by:
      getConfigurationClassLoader in interface IScopeProvider
      Returns:
      returns the ClassLoader created by the ClassLoaderManager.
    • getApplicationContext

      public org.springframework.context.ApplicationContext getApplicationContext()
      Specified by:
      getApplicationContext in interface IConfigurationAware
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • getName

      public String getName()
      Specified by:
      getName in interface IConfigurationAware
      Specified by:
      getName in interface INamedObject
    • getProviderURL

      public String getProviderURL()
    • getInitialContextFactoryName

      public String getInitialContextFactoryName()
    • getAuthentication

      public String getAuthentication()
    • getPrincipal

      public String getPrincipal()
    • getCredentials

      public String getCredentials()
    • getJndiAuthAlias

      public String getJndiAuthAlias()
    • getJmsRealmName

      public String getJmsRealmName()
    • getUrlPkgPrefixes

      public String getUrlPkgPrefixes()
    • getSecurityProtocol

      public String getSecurityProtocol()
    • getJndiContextPrefix

      public String getJndiContextPrefix()
    • getJndiProperties

      public String getJndiProperties()