org.keel.services.event.openjms
Class OpenJMSEventManager
java.lang.Object
java.lang.Thread
org.keel.services.event.openjms.OpenJMSEventManager
- All Implemented Interfaces:
- Configurable, EventManager, Initializable, LogEnabled, java.lang.Runnable
- public class OpenJMSEventManager
- extends java.lang.Thread
- implements EventManager, Configurable, Initializable, LogEnabled
Class that allows listeners to be registered and events to be posted
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Method Summary |
void |
addListener(EventListener listener, java.lang.String eventIdentifier)
|
void |
configure(Configuration newConfig)
Pass the Configuration to the Configurable class. |
void |
dispose()
The caller should always use "close()" to close out the KeelJmsClient when it's done with it. |
void |
enableLogging(Logger newLog)
Provide component with a logger. |
void |
initialize()
The user of this KeelJmsClient can call open explicitly, or it will be called automatically the first time a message is sent. |
void |
onMessage(Message m)
|
private void |
post(Event e)
|
void |
postEvent(Event e)
|
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
log
private static Logger log
-
host
private java.lang.String host
-
port
private java.lang.String port
-
jndiname
private java.lang.String jndiname
-
mode
private java.lang.String mode
-
secure
private boolean secure
-
url
private java.lang.String url
-
persistent
private boolean persistent
-
publisher
private TopicPublisher publisher
-
connection
private static TopicConnection connection
-
session
private static TopicSession session
-
topic
private static Topic topic
-
clientId
private int clientId
-
timeout
private int timeout
-
listeners
private java.util.Map listeners
-
config
private Configuration config
-
OpenJMSEventManager
public OpenJMSEventManager()
configure
public void configure(Configuration newConfig)
- Description copied from interface:
Configurable
-
Pass the
Configuration to the Configurable class.
-
- Specified by:
configure in interface Configurable
-
- Parameters:
newConfig - the class configurations. Must not be null.
initialize
public void initialize()
throws ModelException
-
The user of this KeelJmsClient can call open explicitly, or it will be called automatically the first time a message is sent.
-
- Specified by:
initialize in interface Initializable
-
- Throws:
ModelException
addListener
public void addListener(EventListener listener,
java.lang.String eventIdentifier)
-
- Specified by:
addListener in interface EventManager
-
post
private void post(Event e)
-
-
onMessage
public void onMessage(Message m)
-
-
postEvent
public void postEvent(Event e)
throws NestedException
-
- Specified by:
postEvent in interface EventManager
-
- Throws:
NestedException
dispose
public void dispose()
-
The caller should always use "close()" to close out the KeelJmsClient when it's done with it.
-
-
enableLogging
public void enableLogging(Logger newLog)
- Description copied from interface:
LogEnabled
-
Provide component with a logger.
-
- Specified by:
enableLogging in interface LogEnabled
-
- Parameters:
newLog - the logger. Must not be null.
Please see keelframework.org for information about new Keel releases.