Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq.jndi
Class ActiveMQInitialContextFactory  view ActiveMQInitialContextFactory download ActiveMQInitialContextFactory.java

java.lang.Object
  extended byorg.activemq.jndi.ActiveMQInitialContextFactory
All Implemented Interfaces:
javax.naming.spi.InitialContextFactory
Direct Known Subclasses:
ActiveMQWASInitialContextFactory

public class ActiveMQInitialContextFactory
extends java.lang.Object
implements javax.naming.spi.InitialContextFactory

A factory of the ActiveMQ InitialContext which contains javax.jms.ConnectionFactory instances as well as a child context called destinations which contain all of the current active destinations, in child context depending on the QoS such as transient or durable and queue or topic.

Version:
$Revision: 1.1.1.1 $

Field Summary
private  java.lang.String connectionPrefix
           
protected static java.lang.String[] defaultConnectionFactoryNames
           
private static org.apache.commons.logging.Log log
           
private  java.lang.String queuePrefix
           
private  java.lang.String topicPrefix
           
 
Constructor Summary
ActiveMQInitialContextFactory()
           
 
Method Summary
protected  org.activemq.ActiveMQConnectionFactory createConnectionFactory(java.util.Hashtable environment)
          Factory method to create a new connection factory from the given environment
private  org.activemq.ActiveMQConnectionFactory createConnectionFactory(java.lang.String name, java.util.Hashtable environment)
           
protected  javax.jms.Queue createQueue(java.lang.String name)
          Factory method to create new Queue instances
protected  void createQueues(java.util.Map data, java.util.Hashtable environment)
           
protected  javax.jms.Topic createTopic(java.lang.String name)
          Factory method to create new Topic instances
protected  void createTopics(java.util.Map data, java.util.Hashtable environment)
           
protected  java.lang.String[] getConnectionFactoryNames(java.util.Map environment)
           
 java.lang.String getConnectionPrefix()
           
 javax.naming.Context getInitialContext(java.util.Hashtable environment)
           
 java.lang.String getQueuePrefix()
           
 java.lang.String getTopicPrefix()
           
 void setConnectionPrefix(java.lang.String connectionPrefix)
           
 void setQueuePrefix(java.lang.String queuePrefix)
           
 void setTopicPrefix(java.lang.String topicPrefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final transient org.apache.commons.logging.Log log

defaultConnectionFactoryNames

protected static final java.lang.String[] defaultConnectionFactoryNames

connectionPrefix

private java.lang.String connectionPrefix

queuePrefix

private java.lang.String queuePrefix

topicPrefix

private java.lang.String topicPrefix
Constructor Detail

ActiveMQInitialContextFactory

public ActiveMQInitialContextFactory()
Method Detail

getInitialContext

public javax.naming.Context getInitialContext(java.util.Hashtable environment)
                                       throws javax.naming.NamingException
Specified by:
getInitialContext in interface javax.naming.spi.InitialContextFactory

createConnectionFactory

private org.activemq.ActiveMQConnectionFactory createConnectionFactory(java.lang.String name,
                                                                       java.util.Hashtable environment)

getTopicPrefix

public java.lang.String getTopicPrefix()

setTopicPrefix

public void setTopicPrefix(java.lang.String topicPrefix)

getQueuePrefix

public java.lang.String getQueuePrefix()

setQueuePrefix

public void setQueuePrefix(java.lang.String queuePrefix)

getConnectionFactoryNames

protected java.lang.String[] getConnectionFactoryNames(java.util.Map environment)

createQueues

protected void createQueues(java.util.Map data,
                            java.util.Hashtable environment)

createTopics

protected void createTopics(java.util.Map data,
                            java.util.Hashtable environment)

createQueue

protected javax.jms.Queue createQueue(java.lang.String name)
Factory method to create new Queue instances


createTopic

protected javax.jms.Topic createTopic(java.lang.String name)
Factory method to create new Topic instances


createConnectionFactory

protected org.activemq.ActiveMQConnectionFactory createConnectionFactory(java.util.Hashtable environment)
Factory method to create a new connection factory from the given environment


getConnectionPrefix

public java.lang.String getConnectionPrefix()

setConnectionPrefix

public void setConnectionPrefix(java.lang.String connectionPrefix)