|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.logging.log4j.core.appender.AbstractManager
org.apache.logging.log4j.core.net.AbstractJMSManager
public abstract class AbstractJMSManager
Base Class for Managers of JMS connections.
Field Summary |
---|
Fields inherited from class org.apache.logging.log4j.core.appender.AbstractManager |
---|
count, LOGGER |
Constructor Summary | |
---|---|
AbstractJMSManager(String name)
The Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractManager |
---|
getCount, getManager, getName, hasManager, release, releaseSub |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractJMSManager(String name)
name
- The name of the Appender.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2013 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.