public abstract class AbstractJMSManager extends AbstractManager
count, LOGGER
Constructor and Description |
---|
AbstractJMSManager(String name)
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static Context |
createContext(String factoryName,
String providerURL,
String urlPkgPrefixes,
String securityPrincipalName,
String securityCredentials)
Create the InitialContext.
|
protected static Properties |
getEnvironment(String factoryName,
String providerURL,
String urlPkgPrefixes,
String securityPrincipalName,
String securityCredentials)
Sets up the properties to pass to the InitialContext.
|
protected static Object |
lookup(Context ctx,
String name)
Looks up the name in the context.
|
abstract void |
send(Serializable object)
Send the message.
|
void |
send(Serializable object,
javax.jms.Session session,
javax.jms.MessageProducer producer)
Send the Object.
|
getContentFormat, getCount, getManager, getName, hasManager, release, releaseSub
public AbstractJMSManager(String name)
name
- The name of the Appender.protected static Context createContext(String factoryName, String providerURL, String urlPkgPrefixes, String securityPrincipalName, String securityCredentials) throws NamingException
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.NamingException
- if a naming error occurs.protected static Object lookup(Context ctx, String name) throws NamingException
ctx
- The Context.name
- The name to locate.NamingException
- If an error occurs locating the name.protected static Properties getEnvironment(String factoryName, String providerURL, String urlPkgPrefixes, String securityPrincipalName, String securityCredentials)
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.public abstract void send(Serializable object) throws Exception
object
- The Object to sent.Exception
- if an error occurs.public void send(Serializable object, javax.jms.Session session, javax.jms.MessageProducer producer) throws Exception
object
- The Object to send.session
- The Session.producer
- The MessageProducer.Exception
- if an error occurs.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.