Keel 2.1RC2

org.keel.services.event.jbossmq
Class JbossMQEventManager

java.lang.Object
  extended byorg.keel.services.event.jbossmq.JbossMQEventManager
All Implemented Interfaces:
EventManager

public class JbossMQEventManager
extends java.lang.Object
implements EventManager


Field Summary
private  int clientId
           
private static TopicConnection connection
           
private  java.lang.String host
           
private  java.lang.String jndiname
           
private  java.util.Map listeners
           
private  java.lang.String mode
           
private  boolean persistent
           
private  java.lang.String port
           
private  TopicPublisher publisher
           
private  boolean secure
           
private static TopicSession session
           
private  int timeout
           
private static Topic topic
           
private  java.lang.String url
           
 
Fields inherited from interface org.keel.services.event.EventManager
ROLE
 
Constructor Summary
JbossMQEventManager()
           
 
Method Summary
 void addListener(EventListener listener, java.lang.String eventIdentifier)
           
 void ejbCreate()
          The user of this KeelJmsClient can call open explicitly, or it will be called automatically the first time a message is sent.
 void ejbRemove()
          The caller should always use "close()" to close out the KeelJmsClient when it's done with it.
 void onMessage(Message m)
           
 void post(Event e)
           
 void postEvent(Event e)
           
 void setMessageDrivenContext(MessageDrivenContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

JbossMQEventManager

public JbossMQEventManager()
Method Detail

setMessageDrivenContext

public void setMessageDrivenContext(MessageDrivenContext ctx)

ejbCreate

public void ejbCreate()
               throws ModelException
The user of this KeelJmsClient can call open explicitly, or it will be called automatically the first time a message is sent.

Throws:
ModelException

addListener

public void addListener(EventListener listener,
                        java.lang.String eventIdentifier)
Specified by:
addListener in interface EventManager

post

public 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

ejbRemove

public void ejbRemove()
The caller should always use "close()" to close out the KeelJmsClient when it's done with it.


Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.