org.gcube.dataanalysis.executor.messagequeue
Class QueueManager

java.lang.Object
  extended by org.gcube.dataanalysis.executor.messagequeue.QueueManager

public class QueueManager
extends Object


Field Summary
 javax.jms.Connection connection
           
 org.apache.activemq.ActiveMQConnectionFactory connectionFactory
           
 javax.jms.Destination destination
           
 String mqurl
           
 javax.jms.Session session
           
 
Constructor Summary
QueueManager()
           
 
Method Summary
 void closeSession()
           
 void createAndConnect(String user, String password, String mqurl, String queueName)
           
 void destroy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionFactory

public org.apache.activemq.ActiveMQConnectionFactory connectionFactory

connection

public javax.jms.Connection connection

session

public javax.jms.Session session

destination

public javax.jms.Destination destination

mqurl

public String mqurl
Constructor Detail

QueueManager

public QueueManager()
Method Detail

createAndConnect

public void createAndConnect(String user,
                             String password,
                             String mqurl,
                             String queueName)
                      throws javax.jms.JMSException
Throws:
javax.jms.JMSException

destroy

public void destroy()

closeSession

public void closeSession()
                  throws Exception
Throws:
Exception


Copyright © 2012. All Rights Reserved.