ie.nuigalway.ecrg.jade.jmsmtp.providersupport
Class OpenJmsProviderAdmin

java.lang.Object
  |
  +--ie.nuigalway.ecrg.jade.jmsmtp.providersupport.OpenJmsProviderAdmin
All Implemented Interfaces:
ProviderAdmin

public class OpenJmsProviderAdmin
extends java.lang.Object
implements ProviderAdmin


Field Summary
private static org.apache.log4j.Category log
           
(package private)  java.util.Properties props
           
private  java.lang.String url
           
 
Constructor Summary
OpenJmsProviderAdmin()
          Setup the OpenJMS Provider Admin
 
Method Summary
 javax.jms.Queue getOrCreateQueue(JMSAddress jmsTA)
          Lookup or create a specified queue and return it
 javax.jms.QueueConnectionFactory getQueueConnectionFactory(JMSAddress jmsTA)
          Create a QueueConnection to a specified broker and place it in the hashmap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Category log

props

java.util.Properties props

url

private java.lang.String url
Constructor Detail

OpenJmsProviderAdmin

public OpenJmsProviderAdmin()
Setup the OpenJMS Provider Admin

Method Detail

getQueueConnectionFactory

public javax.jms.QueueConnectionFactory getQueueConnectionFactory(JMSAddress jmsTA)
                                                           throws jade.mtp.MTPException
Create a QueueConnection to a specified broker and place it in the hashmap

Specified by:
getQueueConnectionFactory in interface ProviderAdmin
Parameters:
jmsTA - Details of broker to create connection factory too
Returns:
QueueConnectionFactory onnection to this broker
Throws:
jade.mtp.MTPException - Error creating the ConnectionFactory

getOrCreateQueue

public javax.jms.Queue getOrCreateQueue(JMSAddress jmsTA)
                                 throws jade.mtp.MTPException
Lookup or create a specified queue and return it

Specified by:
getOrCreateQueue in interface ProviderAdmin
Parameters:
jmsTA - Contains details of the queue to lookup or create
Returns:
Queue The specified queue returned
Throws:
jade.mtp.MTPException - Error while creating the queue