activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From drystone <dryst...@mailinator.com>
Subject Re: Using ActiveMQ embedded sever for Testing
Date Tue, 06 Jun 2006 13:41:05 GMT

I also noticed this commented out code:

public class ActiveMQInitialContextFactory implements InitialContextFactory
{
   public Context getInitialContext(Hashtable environment) throws
NamingException {
        // lets create a factory
        Map data = new ConcurrentHashMap();
        String[] names = getConnectionFactoryNames(environment);
        for (int i = 0; i < names.length; i++) {
            ActiveMQConnectionFactory factory =null;
            String name = names[i];
            try{
             factory = createConnectionFactory(name, environment);
            }catch(Exception e){
                throw new NamingException("Invalid broker URL");

            }
       /*     if( broker==null ) {
                try {
                    broker = factory.getEmbeddedBroker();
                }
                catch (JMSException e) {
                    log.warn("Failed to get embedded broker", e);
                }
            }
       */
            data.put(name,factory);
        }

        createQueues(data, environment);
        createTopics(data, environment);
        /*
        if (broker != null) {
            data.put("destinations",
broker.getDestinationContext(environment));
        }
        */

...

Would that effect the broker from working?
--
View this message in context: http://www.nabble.com/Using-ActiveMQ-embedded-sever-for-Testing-t1736053.html#a4733464
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message