activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roEcho <borz_mihai1...@yahoo.com>
Subject Error creating subscription
Date Tue, 11 Feb 2014 15:07:59 GMT
Hi

I am running hornetQ with stomp on. I am running the following code:
            Apache.NMS.Stomp.ConnectionFactory factory = new
Apache.NMS.Stomp.ConnectionFactory("tcp://localhost:61613");

            using (IConnection connection =
(IConnection)factory.CreateConnection())
            using (ISession session =
connection.CreateSession(AcknowledgementMode.AutoAcknowledge))
            {

                //IDestination destination =
session.GetQueue("queue://testQ1");
                IDestination destination =
SessionUtil.GetDestination(session, @"queue://testQ");

                *IMessageConsumer consumer1 =
session.CreateConsumer(destination);*
                Console.WriteLine("Using destination: " + destination);

                using (IMessageConsumer consumer =
session.CreateConsumer(destination))
                {
                    // Start the connection so that messages will be
processed.
                    connection.Start();
                    consumer.Listener += new MessageListener(OnMessage);
                    Console.ReadLine();
                }
            }


the bolded line throws an Apache.NMS.Stomp.BrokerException with the
following message HQ339016: Error creating subscription.

does anyone have an idea why ?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Error-creating-subscription-tp4677781.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message