Package org.apache.activemq.broker

Examples of org.apache.activemq.broker.BrokerService.stop()


        int threadCountAfterSleep = Thread.activeCount();
       
        assertTrue("Threads are leaking, threadCount=" + threadCount + " threadCountAfterSleep=" + threadCountAfterSleep,
                threadCountAfterSleep < threadCount + 8);
               
        broker.stop();
    }
}
View Full Code Here


            ex.printStackTrace();
        }

        sendFrame("DISCONNECT\n\n");
        stompSocket.close();
        broker.stop();

        log.info("Total messages received: " + messagesCount);
        assertTrue("Messages received after connection loss: " + messagesCount, messagesCount >= 2000);

        // The first ack messages has no chance complete, so we receiving more messages
View Full Code Here

        // start a client
        ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("tcp://localhost:9100");
        factory.createConnection();

        // stop activemq broker
        broker.stop();

        // start activemq broker again
        broker = createBroker();

        // start a client again
View Full Code Here

        // start a client again
        factory = new ActiveMQConnectionFactory("tcp://localhost:9100");
        factory.createConnection();

        // stop activemq broker
        broker.stop();

    }

    protected BrokerService createBroker() throws JMSException {
        BrokerService broker = null;
View Full Code Here

        broker = createBroker("org/apache/activemq/config/config.xml");
        try {
            assertEquals("Broker Config Error (brokerName)", "brokerXmlConfigHelper", broker.getBrokerName());
        } finally {
            if (broker != null) {
                broker.stop();
            }
        }
    }

    /*
 
View Full Code Here

                consumer.close();
                session.close();
                connection.close();

                broker.stop();
            }
        });
    }

    public void runTest(Task task) throws Exception {
View Full Code Here

        // Clean up
        producer.close();
        consumer.close();
        session.close();
        connection.close();
        broker.stop();
    }
}
View Full Code Here

            JournalPersistenceAdapter pa = (JournalPersistenceAdapter) broker.getPersistenceAdapter();
           
            log.info("Success");
        } finally {
            if (broker != null) {
                broker.stop();
            }
        }
    }

    /*
 
View Full Code Here

                    ((JDBCPersistenceAdapter)adapter).getWireFormat() instanceof ObjectStreamWireFormat);

            log.info("Success");
        } finally {
            if (broker != null) {
                broker.stop();
            }
        }
    }

    /*
 
View Full Code Here

            log.info("Success");

            log.info("Success");
        } finally {
            if (broker != null) {
                broker.stop();
            }
        }
    }

    /*
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.