public class JmsQueueManager extends AbstractJmsManager
count, LOGGER
Modifier | Constructor and Description |
---|---|
protected |
JmsQueueManager(String name,
Context context,
String factoryBindingName,
String queueBindingName,
String userName,
String password,
org.apache.logging.log4j.core.net.jms.JmsQueueManager.QueueInfo info)
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
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 overridden by Managers to perform processing while the Manager is being released and the
lock is held.
|
void |
send(Serializable object)
Send the message.
|
createContext, getEnvironment, lookup, send
getContentFormat, getCount, getManager, getName, hasManager, release
protected JmsQueueManager(String name, Context context, String factoryBindingName, String queueBindingName, String userName, String password, org.apache.logging.log4j.core.net.jms.JmsQueueManager.QueueInfo info)
name
- The unique name of the connection.context
- The context.factoryBindingName
- The factory binding name.queueBindingName
- The queue binding name.userName
- The user name.password
- The credentials for the user.info
- The Queue connection info.public static JmsQueueManager getJmsQueueManager(String factoryName, String providerURL, String urlPkgPrefixes, String securityPrincipalName, String securityCredentials, String factoryBindingName, String queueBindingName, String userName, String password)
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 factorysecurityPrincipalName
- 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.public void send(Serializable object) throws Exception
AbstractJmsManager
send
in class AbstractJmsManager
object
- The Object to sent.Exception
- if an error occurs.public void releaseSub()
AbstractManager
releaseSub
in class AbstractManager
Copyright © 1999-2015 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.