Package org.frankframework.jndi
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
Provides all JNDI functions and is meant to act as a base class.
- Author:
- Johan Verrips IOS
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
org.springframework.context.ApplicationContext
This ClassLoader is set upon creation of the object, used to retrieve resources configured by the Ibis application.When InitialContextFactory and ProviderURL are set, these are used to get theContext
.getName()
void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setAuthentication
(String newAuthentication) maps to the field context.security_authenticationvoid
setCredentials
(String newCredentials) username to connect to context, maps to context.security_credentialsvoid
class to use as initial context factoryvoid
setJmsRealm
(String jmsRealmName) loads JNDI (and other) properties from a JmsRealmvoid
setJndiAuthAlias
(String string) authentication alias, may be used to override principal and credential-settingsvoid
setJndiContextPrefix
(String string) void
setJndiProperties
(String jndiProperties) void
Name of the sender or the listenervoid
setPrincipal
(String string) username to connect to context, maps to context.security_principalvoid
setProviderURL
(String value) Sets the value of providerURLvoid
setSecurityProtocol
(String securityProtocol) maps to the field context.security_protocolvoid
setUrlPkgPrefixes
(String newUrlPkgPrefixes) maps to the field context.url_pkg_prefixesvoid
stop()
toString()
-
Field Details
-
log
protected org.apache.logging.log4j.Logger log
-
-
Constructor Details
-
JndiBase
public JndiBase()
-
-
Method Details
-
configure
- Specified by:
configure
in interfaceIConfigurable
- Throws:
ConfigurationException
-
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 -
setJndiContextPrefix
-
setJndiProperties
-
setName
Name of the sender or the listener- Specified by:
setName
in interfaceINamedObject
-
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 interfaceIScopeProvider
- Returns:
- returns the ClassLoader created by the
ClassLoaderManager
.
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()- Specified by:
getApplicationContext
in interfaceIConfigurationAware
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
getName
- Specified by:
getName
in interfaceIConfigurationAware
- Specified by:
getName
in interfaceINamedObject
-
getProviderURL
-
getInitialContextFactoryName
-
getAuthentication
-
getPrincipal
-
getCredentials
-
getJndiAuthAlias
-
getJmsRealmName
-
getUrlPkgPrefixes
-
getSecurityProtocol
-
getJndiContextPrefix
-
getJndiProperties
-