Re: Unable to use ActiveMQ.NMS on Windows 7

2012-10-15 Thread songu
Hi Guys,

I have an issue with ActiveMQ.NMS as well. I added both
Apache.NMS.ActiveMQ and Apache.NMS into my .Net C# solution. But they
can not be resolved due to have a dependency on System.Web,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, which is
not the current target framework .NetFramework, Version=v4.0,
Profile=Client.  

My PC has .Net 4.0 installed and OS is WIN 7. Any suggestion what is the
problem?

Thanks!



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Unable-to-use-ActiveMQ-NMS-on-Windows-7-tp465p4657827.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


consumer finished right after master broker is killed

2012-09-10 Thread songu
Hi Guys,

I am new to ActiveMQ. Currently I am using 5.6.0 and trying pure
master/slave setup. I start up two brokers in the same server but different
ports. During my testing, I am using the config in consumer as:

failover://(tcp://server:61616,tcp://server:61618)?randomize=false

Then right after I killed the master broker, I noticed the slave became the
master, which is expected. But all the consumers that used to connect with
original master borker were finished. 

Could some one suggest what could be wrong? My consumer codes are the
following:

String
url=failover://(tcp://server:61616,tcp://server:61618)?randomize=false;
ConnectionFactory connectionFactory = new
ActiveMQConnectionFactory(url); 
Connection connection = connectionFactory.createConnection(); 
connection.start(); 
 
Session session = connection.createSession(false,
Session.AUTO_ACKNOWLEDGE); 
Queue msgQueue = session.createQueue(topic);
MessageConsumer consumer = session.createConsumer(msgQueue); 
consumer.setMessageListener(listener);

Thanks in advance!



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/consumer-finished-right-after-master-broker-is-killed-tp4656235.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.