Class JMSAppenderBase<E>

  • All Implemented Interfaces:
    Appender<E>, ContextAware, FilterAttachable<E>, LifeCycle


    public abstract class JMSAppenderBase<E>
    extends AppenderBase<E>
    This class serves as a base class for JMSTopicAppender and JMSQueueAppender For more information about this appender, please refer to: http://logback.qos.ch/manual/appenders.html#JMSAppenderBase
    • Field Detail

      • securityPrincipalName

        protected String securityPrincipalName
      • securityCredentials

        protected String securityCredentials
      • initialContextFactoryName

        protected String initialContextFactoryName
      • urlPkgPrefixes

        protected String urlPkgPrefixes
      • providerURL

        protected String providerURL
      • userName

        protected String userName
      • password

        protected String password
    • Constructor Detail

      • JMSAppenderBase

        public JMSAppenderBase()
    • Method Detail

      • buildEnvProperties

        public Properties buildEnvProperties()
      • setInitialContextFactoryName

        public void setInitialContextFactoryName(String initialContextFactoryName)
        Setting the InitialContextFactoryName method will cause this JMSAppender instance to use the InitialContext.InitialContext(Hashtable) method instead of the no-argument constructor. If you set this option, you should also at least set the ProviderURL option.

        See also setProviderURL(String).

      • getProviderURL

        public String getProviderURL()
      • setProviderURL

        public void setProviderURL(String providerURL)
      • getURLPkgPrefixes

        public String getURLPkgPrefixes()
      • setURLPkgPrefixes

        public void setURLPkgPrefixes(String urlPkgPrefixes)
      • getSecurityCredentials

        public String getSecurityCredentials()
      • setSecurityCredentials

        public void setSecurityCredentials(String securityCredentials)
      • getSecurityPrincipalName

        public String getSecurityPrincipalName()
      • setSecurityPrincipalName

        public void setSecurityPrincipalName(String securityPrincipalName)
      • getUserName

        public String getUserName()
      • setUserName

        public void setUserName(String userName)
        The user name to use when javax.jms.TopicConnectionFactory#createTopicConnection(String, String) creating a topic session}. If you set this option, you should also set the Password option. See setPassword(String).
      • getPassword

        public String getPassword()
      • setPassword

        public void setPassword(String password)
        The password to use when creating a topic session.