Package org.frankframework.jndi
Class JndiBase
java.lang.Object
org.frankframework.jndi.JndiBase
- All Implemented Interfaces:
IScopeProvider
- Direct Known Subclasses:
JMSFacade,LdapSender,TomcatJndiProxy
Provides all JNDI functions and is meant to act as a base class.
TODO: Remove this base class!
- Author:
- Johan Verrips IOS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWhen InitialContextFactory and ProviderURL are set, these are used to get theContext.voidsetAuthentication(String newAuthentication) maps to the field context.security_authenticationvoidsetCredentials(String newCredentials) username to connect to context, maps to context.security_credentialsvoidclass to use as initial context factoryvoidsetJmsRealm(String jmsRealmName) loads JNDI (and other) properties from a JmsRealmvoidsetJndiAuthAlias(String string) authentication alias, may be used to override principal and credential-settingsvoidsetJndiProperties(String jndiProperties) voidsetPrincipal(String string) username to connect to context, maps to context.security_principalvoidsetProviderURL(String value) Sets the value of providerURLvoidsetSecurityProtocol(String securityProtocol) maps to the field context.security_protocolvoidsetUrlPkgPrefixes(String newUrlPkgPrefixes) maps to the field context.url_pkg_prefixesvoidstop()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.frankframework.core.IScopeProvider
getConfigurationClassLoader
-
Constructor Details
-
JndiBase
public JndiBase()
-
-
Method Details
-
stop
public void stop() -
getJndiEnv
- Throws:
NamingException
-
getContext
When InitialContextFactory and ProviderURL are set, these are used to get theContext. 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
maps to the field context.security_authentication -
setCredentials
username to connect to context, maps to context.security_credentials -
setInitialContextFactoryName
class to use as initial context factory -
setProviderURL
Sets the value of providerURL -
setSecurityProtocol
maps to the field context.security_protocol -
setUrlPkgPrefixes
maps to the field context.url_pkg_prefixes -
toString
-
setJmsRealm
loads JNDI (and other) properties from a JmsRealm- See Also:
-
setPrincipal
username to connect to context, maps to context.security_principal -
setJndiAuthAlias
authentication alias, may be used to override principal and credential-settings -
setJndiProperties
-