org.ow2.jasmine.monitoring.eos.common.jms
Class JMSConnection

java.lang.Object
  extended by org.ow2.jasmine.monitoring.eos.common.jms.JMSConnection
All Implemented Interfaces:
Serializable

public class JMSConnection
extends Object
implements Serializable

Author:
poutchjp
See Also:
Serialized Form

Field Summary
protected  javax.jms.Connection connection
           
static String CONNECTION_FACTORY
           
protected  javax.jms.Session session
           
protected  javax.jms.MessageConsumer subscriber
           
protected  javax.jms.Topic topic
           
 
Constructor Summary
JMSConnection(EventManager evManager)
           
 
Method Summary
 void connect(String topicName)
           
<SML extends javax.jms.MessageListener,Serializable>
void
connect(String topicName, SML listener)
           
 void disconnect()
           
 void sendObjectMessage(Serializable object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECTION_FACTORY

public static final String CONNECTION_FACTORY
See Also:
Constant Field Values

topic

protected javax.jms.Topic topic

connection

protected javax.jms.Connection connection

session

protected javax.jms.Session session

subscriber

protected javax.jms.MessageConsumer subscriber
Constructor Detail

JMSConnection

public JMSConnection(EventManager evManager)
Method Detail

connect

public void connect(String topicName)
             throws Exception
Throws:
Exception

connect

public <SML extends javax.jms.MessageListener,Serializable> void connect(String topicName,
                                                                         SML listener)
             throws Exception
Throws:
Exception

sendObjectMessage

public void sendObjectMessage(Serializable object)
                       throws Exception
Throws:
Exception

disconnect

public void disconnect()
                throws Exception
Throws:
Exception


Copyright © 2013 OW2 Consortium. All Rights Reserved.