org.apache.qpid.example.pubsub
Class ConnectionSetup
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ConnectionSetup
public ConnectionSetup()
throws NamingException
- Throws:
NamingException
ConnectionSetup
public ConnectionSetup(Properties properties)
throws NamingException
- Throws:
NamingException
getConnectionFactory
public ConnectionFactory getConnectionFactory()
getDestination
public Destination getDestination(String jndiName)
close
public void close()
Licensed to the Apache Software Foundation