org.apache.qpid.example.pubsub
Class ConnectionSetup

java.lang.Object
  extended by org.apache.qpid.example.pubsub.ConnectionSetup

public class ConnectionSetup
extends Object

This ConnectionSetup is a wrapper around JNDI it creates a number of entries. It is equivalent to a PropertyFile of value: connectionfactory.local=amqp://guest:guest@clientid/test?brokerlist='localhost' connectionfactory.vm=amqp://guest:guest@clientid/test?brokerlist='vm://:1' queue.queue=example.MyQueue topic.topic=example.hierarical.topic


Field Summary
(package private) static String CONNECTION_JNDI_NAME
           
(package private) static String CONNECTION_NAME
           
(package private) static String INITIAL_CONTEXT_FACTORY
           
static String QUEUE_JNDI_NAME
           
(package private) static String QUEUE_NAME
           
static String TOPIC_JNDI_NAME
           
(package private) static String TOPIC_NAME
           
 
Constructor Summary
ConnectionSetup()
           
ConnectionSetup(Properties properties)
           
 
Method Summary
 void close()
           
 ConnectionFactory getConnectionFactory()
           
 Destination getDestination(String jndiName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INITIAL_CONTEXT_FACTORY

static final String INITIAL_CONTEXT_FACTORY
See Also:
Constant Field Values

CONNECTION_JNDI_NAME

static final String CONNECTION_JNDI_NAME
See Also:
Constant Field Values

CONNECTION_NAME

static final String CONNECTION_NAME
See Also:
Constant Field Values

QUEUE_JNDI_NAME

public static final String QUEUE_JNDI_NAME
See Also:
Constant Field Values

QUEUE_NAME

static final String QUEUE_NAME
See Also:
Constant Field Values

TOPIC_JNDI_NAME

public static final String TOPIC_JNDI_NAME
See Also:
Constant Field Values

TOPIC_NAME

static final String TOPIC_NAME
See Also:
Constant Field Values
Constructor Detail

ConnectionSetup

public ConnectionSetup()
                throws NamingException
Throws:
NamingException

ConnectionSetup

public ConnectionSetup(Properties properties)
                throws NamingException
Throws:
NamingException
Method Detail

getConnectionFactory

public ConnectionFactory getConnectionFactory()

getDestination

public Destination getDestination(String jndiName)

close

public void close()


Licensed to the Apache Software Foundation