org.ow2.jasmine.monitoring.eos.common.jms
Class JMSConnection
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
JMSConnection
public JMSConnection(EventManager evManager)
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.