org.apache.logging.log4j.core.net.jms
Class JmsTopicManager

java.lang.Object
  extended by org.apache.logging.log4j.core.appender.AbstractManager
      extended by org.apache.logging.log4j.core.net.jms.AbstractJmsManager
          extended by org.apache.logging.log4j.core.net.jms.JmsTopicManager

public class JmsTopicManager
extends AbstractJmsManager

Manager for JMS Topic connections.


Field Summary
 
Fields inherited from class org.apache.logging.log4j.core.appender.AbstractManager
count, LOGGER
 
Constructor Summary
protected JmsTopicManager(String name, Context context, String factoryBindingName, String topicBindingName, String userName, String password, org.apache.logging.log4j.core.net.jms.JmsTopicManager.TopicInfo info)
          Constructor.
 
Method Summary
static JmsTopicManager getJmsTopicManager(String factoryName, String providerURL, String urlPkgPrefixes, String securityPrincipalName, String securityCredentials, String factoryBindingName, String topicBindingName, String userName, String password)
          Obtain a JSMTopicManager.
 void releaseSub()
          May be overridden by Managers to perform processing while the Manager is being released and the lock is held.
 void send(Serializable object)
          Send the message.
 
Methods inherited from class org.apache.logging.log4j.core.net.jms.AbstractJmsManager
createContext, getEnvironment, lookup, send
 
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractManager
getContentFormat, getCount, getManager, getName, hasManager, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsTopicManager

protected JmsTopicManager(String name,
                          Context context,
                          String factoryBindingName,
                          String topicBindingName,
                          String userName,
                          String password,
                          org.apache.logging.log4j.core.net.jms.JmsTopicManager.TopicInfo info)
Constructor.

Parameters:
name - The unique name of the connection.
context - The context.
factoryBindingName - The factory binding name.
topicBindingName - The queue binding name.
userName - The user name.
password - The credentials for the user.
info - The Queue connection info.
Method Detail

getJmsTopicManager

public static JmsTopicManager getJmsTopicManager(String factoryName,
                                                 String providerURL,
                                                 String urlPkgPrefixes,
                                                 String securityPrincipalName,
                                                 String securityCredentials,
                                                 String factoryBindingName,
                                                 String topicBindingName,
                                                 String userName,
                                                 String password)
Obtain a JSMTopicManager.

Parameters:
factoryName - The fully qualified class name of the InitialContextFactory.
providerURL - The URL of the provider to use.
urlPkgPrefixes - A colon-separated list of package prefixes for the class name of the factory class that will create a URL context factory
securityPrincipalName - The name of the identity of the Principal.
securityCredentials - The security credentials of the Principal.
factoryBindingName - The name to locate in the Context that provides the TopicConnectionFactory.
topicBindingName - The name to use to locate the Topic.
userName - The userid to use to create the Topic Connection.
password - The password to use to create the Topic Connection.
Returns:
A JmsTopicManager.

send

public void send(Serializable object)
          throws Exception
Description copied from class: AbstractJmsManager
Send the message.

Specified by:
send in class AbstractJmsManager
Parameters:
object - The Object to sent.
Throws:
Exception - if an error occurs.

releaseSub

public void releaseSub()
Description copied from class: AbstractManager
May be overridden by Managers to perform processing while the Manager is being released and the lock is held.

Overrides:
releaseSub in class AbstractManager


Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.