Hi I am using this code to  create a session

private ConnectionFactory cf=new ActiveMQConnectionFactory(AMQ_USER,
AMQ_PASSWORD, this.AMQ_URL);
        private Connection connection = cf.createConnection();
        session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);

now if I have not started activemq, the thread is stuck at the third line
I want either I should get an exception of I can configure a time out for
creation of session
-- 
View this message in context: 
http://www.nabble.com/thread-is-stuck-is-activemq-is-not-started-tp20375152p20375152.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to