activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Nagpal <>
Subject thread is stuck is activemq is not started
Date Fri, 07 Nov 2008 05:54:09 GMT

Hi I am using this code to  create a session

private ConnectionFactory cf=new ActiveMQConnectionFactory(AMQ_USER,
	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:
Sent from the ActiveMQ - User mailing list archive at

View raw message