Class JndiBase

java.lang.Object
org.frankframework.jndi.JndiBase
All Implemented Interfaces:
IScopeProvider
Direct Known Subclasses:
JMSFacade, LdapSender, TomcatJndiProxy

public class JndiBase extends Object implements IScopeProvider
Provides all JNDI functions and is meant to act as a base class. TODO: Remove this base class!
Author:
Johan Verrips IOS
  • Constructor Details

    • JndiBase

      public JndiBase()
  • Method Details

    • stop

      public void stop()
    • 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
    • setJndiProperties

      public void setJndiProperties(String jndiProperties)