org.apache.logging.log4j.core.net
Class JMSQueueManager

java.lang.Object
  extended by org.apache.logging.log4j.core.appender.AbstractManager
      extended by org.apache.logging.log4j.core.net.AbstractJMSManager
          extended by org.apache.logging.log4j.core.net.JMSQueueManager

public class JMSQueueManager
extends AbstractJMSManager

Manager for a JMS Queue.


Field Summary
 
Fields inherited from class org.apache.logging.log4j.core.appender.AbstractManager
count, LOGGER
 
Constructor Summary
protected JMSQueueManager(String name, javax.jms.QueueConnection conn, javax.jms.QueueSession sess, javax.jms.QueueSender sender)
          The Constructor.
 
Method Summary
static JMSQueueManager getJMSQueueManager(String factoryName, String providerURL, String urlPkgPrefixes, String securityPrincipalName, String securityCredentials, String factoryBindingName, String queueBindingName, String userName, String password)
          Obtain a JMSQueueManager.
 void releaseSub()
          May be overriden 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.AbstractJMSManager
createContext, getEnvironment, lookup, send
 
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractManager
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

JMSQueueManager

protected JMSQueueManager(String name,
                          javax.jms.QueueConnection conn,
                          javax.jms.QueueSession sess,
                          javax.jms.QueueSender sender)
The Constructor.

Parameters:
name - The unique name of the connection.
conn - The QueueConnection.
sess - The QueueSession.
sender - The QueueSender.
Method Detail

getJMSQueueManager

public static JMSQueueManager getJMSQueueManager(String factoryName,
                                                 String providerURL,
                                                 String urlPkgPrefixes,
                                                 String securityPrincipalName,
                                                 String securityCredentials,
                                                 String factoryBindingName,
                                                 String queueBindingName,
                                                 String userName,
                                                 String password)
Obtain a JMSQueueManager.

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 QueueConnectionFactory.
queueBindingName - The name to use to locate the Queue.
userName - The userid to use to create the Queue Connection.
password - The password to use to create the Queue Connection.
Returns:
The JMSQueueManager.

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 overriden by Managers to perform processing while the Manager is being released and the lock is held.

Overrides:
releaseSub in class AbstractManager


Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.